> However, could you test also replacing the two floatformat_from_double > calls in convert_doublest_to_floatformat? Sure. Follows the patch. The results still show up correctly, casting doubles to long doubles and long doubles to doubles. ===> Output <=== (gdb) set $ld=(long double)1.2 (gdb) p $ld $8 = 1.1999999999999999555910790149937384 (gdb) p (double) $ld $9 = 1.2 (gdb) set $ld=(double)1.2 (gdb) p $ld $12 = 1.2 (gdb) p (long double) $ld $13 = 1.1999999999999999555910790149937384 Regards, -- Luis Machado Software Engineer IBM Linux Technology Center