dot apl.washington.edu
wrote:
> From: sgk at troutmask dot apl.washington.edu
> Subject: [Bug c/47146] Floating point to integer conversions
> To: babel...@yahoo.com
> Received: Monday, January 3, 2011, 1:01 PM
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47146
>
> --- Commen
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47146
--- Comment #5 from Steve Kargl
2011-01-03 18:01:11 UTC ---
On Mon, Jan 03, 2011 at 05:12:10PM +, babelart at yahoo dot com wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47146
>
> Sorry, I was not specific enough. It is the integer co
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47146
--- Comment #4 from Andreas Schwab 2011-01-03 17:40:24
UTC ---
> fprintf( stdout, "Float 100.0 * 0.3894949=%d\n", 100.0 * elapsed );
> fprintf( stdout, "Float 100 * 0.3894949=%d\n", 100 * elapsed );
>
> both produce the value '-536870912'.
Unde
resulting
integer values when stripping decimals off.
Regards,
Pierre Innocent
--- On Sat, 1/1/11, kargl at gcc dot gnu.org wrote:
> From: kargl at gcc dot gnu.org
> Subject: [Bug c/47146] Floating point to integer conversions
> To: babel...@yahoo.com
> Received: Saturday, Jan
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47146
kargl at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
CC|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47146
--- Comment #1 from Jonathan Wakely 2011-01-01
18:21:01 UTC ---
(In reply to comment #0)
> Casting and rounding seems to be a problem.
Please be more specific.
Do you understand how floating point works?
Do you know that "0.39 * 100" has type