This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/36737] Wrong results from floating-point multiplication by 10
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jul 2008 19:08:11 -0000
- Subject: [Bug c/36737] Wrong results from floating-point multiplication by 10
- References: <bug-36737-16416@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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