delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/01/19:30:14

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: modf BROKEN ??
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <csmeoskr8fmar54l6aq8qdvlgav876rgku@4ax.com>
References: <crdcosk167oh81vpnjfqeg1bnls5qqg9ld AT 4ax DOT com> <f8udosk8samrov7j0156qkuk31aga0essa AT 4ax DOT com> <39871a3d DOT 38832761 AT news DOT freeserve DOT net>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 18
X-Trace: /wLwTaHwJqLxDAxou0YxpZQ6M2uQPHQP7Rbm0WvN4NrZCYVw6eJLrOvYz1n9ZQT/gSTtko+UlsYS!ivpcGzhpBuGIwy0+qLg1YayBeyqNz5klXhNudghVZ4hiuMbBSi+sog8oa2Uov+wnvnUzH/0iLf3C!tek=
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Tue, 01 Aug 2000 23:21:34 GMT
Distribution: world
Date: Tue, 01 Aug 2000 23:21:34 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Tue, 01 Aug 2000 18:43:13 GMT, dontmailme AT iname DOT com (Steamer)
wrote:

>In fact, depending on
>what you're doing, it may be better not to use floating-point
>numbers at all - just use suitably scaled integers.

In fact, that's all "fixed point math" is: suitably scaled integers.
For example, the popular Allegro library scales numbers such that
0x00010000 == 1.0.

-- 
Damian Yerrick
"I refuse to listen to those who refuse to listen to reason."
See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


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