Mail Archives: djgpp/1997/10/12/06:34:30
From: | Reinier Heeres <rwh AT worldonline DOT nl>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Floating point => int
|
Date: | Fri, 10 Oct 1997 21:09:50 +0200
|
Organization: | World Online
|
Lines: | 16
|
Message-ID: | <343E7D7B.9CE55810@worldonline.nl>
|
Reply-To: | rwh AT worldonline DOT nl
|
NNTP-Posting-Host: | alkmr1-p43.worldonline.nl
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hi!
A floating point exception seems to occur sometimes when I convert a
float to an int.
I use _control87() to make sure all the floating point exceptions,
except for the invalid operation exception, are handled internally. If I
put the flag for the invalid operation exception on, my program seems to
hang...
How can I solve this problem??? Should I use another way to convert my
float to an int?
Or should I check my float isn't equal to some value?
Reinier
- Raw text -