home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / amiga / programm / 12332 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  1.4 KB

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