[Bug target/68424] static_cast<int>(0.29 * 100) == "28"

schwab@linux-m68k.org gcc-bugzilla@gcc.gnu.org
Wed Nov 18 23:28:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68424

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Andreas Schwab <schwab@linux-m68k.org> ---
None of the fractional numbers are exactly representable, and different
rounding (conversion to int rounds to zero, formatting floating point numbers
round to nearest) produce different restults.


More information about the Gcc-bugs mailing list