delorie.com/archives/browse.cgi | search |
From: | gebauer AT ciens DOT ula DOT ve (Julian R. Suarez G.) |
Subject: | More problems with floating-point. |
22 Oct 1996 14:32:31 -0700 : | |
Sender: | daemon AT cygnus DOT com |
Approved: | cygnus DOT gnu-win32 AT cygnus DOT com |
Distribution: | cygnus |
Message-ID: | <9610221822.AA19976.cygnus.gnu-win32@melchor> |
Original-To: | gnu-win32 AT cygnus DOT com |
Original-Sender: | owner-gnu-win32 AT cygnus DOT com |
I noticed that floating point casts to integers don't work if you use the '-O' switch for compiling. To circumveit this you can assign the value to a floating point variable before doing any computations. Best regards. Julian Suarez gebauer AT ciens DOT ula DOT ve - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |