This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/36737] Wrong results from floating-point multiplication by 10



------- Comment #7 from pinskia at gcc dot gnu dot org  2008-07-05 19:08 -------
You should also read http://www.validlab.com/goldberg/paper.pdf .

>Well it certainly gives wrong results.

In this case, the number is not directly representable in float.  You will be
able to get better precision with double but it will still not be directly
representable.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36737


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]