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: "dominiq at lps dot ens dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jul 2008 09:48:52 -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 #3 from dominiq at lps dot ens dot fr 2008-07-05 09:48 -------
Why do you think the results are incorrect? Did you hear aboud round-off
errors? 0.2008 cannot be represented exactly in float (nor in double) and you
cannot expect to have more that six significant digits. If you want to get what
you expect, use the right format for the output (not fluent enough in C to give
it to you).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36737