www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/12/07:49:03

From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Floating point => int
Date: 10 Oct 1997 19:45:43 GMT
Organization: Oxford University, England
Lines: 13
Message-ID: <61m0l7$28i$3@news.ox.ac.uk>
References: <343E7D7B DOT 9CE55810 AT worldonline DOT nl>
NNTP-Posting-Host: sable.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Reinier Heeres (rwh AT worldonline DOT nl) wrote:

: 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?

Check that the number in question can be stored in an int, i.e. that it
isn't too large. I believe trying to cast an out-of-range number can cause
this error.

-- 
George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
Merton College, Oxford

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019