delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/01/13:15:24

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: <9v0eos087dgjaiootff5c9okgh8ca1jrps@4ax.com>
References: <crdcosk167oh81vpnjfqeg1bnls5qqg9ld AT 4ax DOT com> <f8udosk8samrov7j0156qkuk31aga0essa AT 4ax DOT com>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 20
X-Trace: /Kkf2OeXeBkd+oh9YQc+AlCIDAGt0gwocfzJHusWDw7ThW45J4HGR+c3Jg77V61zKA9IFBwXyiC3!zsTvhP4/mQhfIVaIaEeSiCAM0USGr/pul1UiWKjRLUCW17c1AOR23N4AmIgDQPMRibnkSsk4Qpp6!6w==
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 17:06:34 GMT
Distribution: world
Date: Tue, 01 Aug 2000 17:06: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 12:23:06 -0400, Radical NetSurfer
<radsmail AT juno DOT com> wrote:

>At 5.0, 6.0, etc, Fract display as "1.0" because of a rounding error
>in the   printf   output.  Its only an "optical illusion", and if 
>%3.21 is used, you won't see it.
>
>the question is obvious:
>HOW do I maintain a %3.3f  output, but NOT get the 
>1.0 "optical illusion"  ???

Round manually.

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