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 #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


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