On 2 November 2013 21:52, Mischa Baars wrote: > You are mistaken :) > > Indeed some rational numbers can only be represented up to a certain number > of bits, like 1 / 3. Others can be exactly represented, like 1 / 8. > > All real numbers, and therefore all rational numbers, can be represented up > to a certain number of bits.
i.e. not exactly. > Converting 1.1 from string to double should not be a problem. That's not what your program does. It converts (long double)1.1, which is not equal to 1.1, to a string. The fact you don't understand doesn't mean the compiler has a bug, and this is off topic for this mailing list. You've been asked before to use gcc-help for this sort of email, instead of reporting "bugs" that are actually just your incorrect assumptions.