home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!manuel!sserve!prolix!dac
- From: dac@prolix.pub.uu.oz.au (Andrew Clayton)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: SAS/C and floats
- Message-ID: <1b7ea37e.ARN22c6@prolix.pub.uu.oz.au>
- Date: Thu, 13 Aug 92 12:30:22 GMT
- Reply-To: munnari!labtam!eyrie!prolix!dac
- FollowUp-To: comp.sys.amiga.programmer
- References: <1992Aug7.211118.5918@usenet.ins.cwru.edu> <Bso3JB.6CB@unx.sas.com>
- <1b7aa695.ARN229a@prolix.pub.uu.oz.au> <Bsrw06.FsC@unx.sas.com>
- Keywords:
- Organization: More like Dis~, really.
- Lines: 25
-
- In article <Bsrw06.FsC@unx.sas.com>, James Cooper writes:
-
- > In article <1b7aa695.ARN229a@prolix.pub.uu.oz.au>, dac@prolix.pub.uu.oz.au (Andrew Clayton) writes:
- > >My problem is that if I have a floating point number less than
- > >1.0 and I do a printf("2.0f",num); I sometimes get a printout of
- > >'0.' instead of '0'. None of the other numbers [>1] display this
- > >spurious decimal point.
- >
- > This was a problem with the 5.10a version of printf(). I can't remember
- > if this was fixed in 5.10b or not... :-(
-
- I'll have to upgrade to V6.
-
- > this regard was in passing floats without having full, proper, and
- > *separate* ANSI style prototypes at the top of the file.
-
- It used to work. I changed the code. It doesn't work anymore. I
- guess I must be in the wrong, and I'm not too fussed over
- regurgitation the code again. It's not that important at the
- moment.
-
- Thanks for your help.
-
- Dac
- --
-