home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / cpm / 1372 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.6 KB  |  35 lines

  1. Newsgroups: comp.os.cpm
  2. Path: sparky!uunet!spool.mu.edu!uwm.edu!rpi!usc!cs.utexas.edu!milano!cactus.org!wixer!fmouse
  3. From: fmouse@wixer.cactus.org (Lindsay Haisley)
  4. Subject: Re: small c problem
  5. Message-ID: <1992Nov10.004618.29145@wixer.cactus.org>
  6. Organization: Real/Time Communications
  7. References: <8NOV199200472108@zeus.tamu.edu>
  8. Distribution: usa
  9. Date: Tue, 10 Nov 92 00:46:18 GMT
  10. Lines: 23
  11.  
  12. In article <8NOV199200472108@zeus.tamu.edu> jle9162@zeus.tamu.edu (ECKHARDT, JASON LEE) writes:
  13. >I just got smallc21 and it seems that I can't use the "%f" conversion
  14. >specifier with this compiler?!  Is this not built in this version or am
  15. >I supposed to include something? If this is a deficiency, is there another
  16. >pd compiler available with a full 'c' implementation? (ansi would be great).
  17.  
  18. Floating point conversion is a complex business and not easily
  19. implemented on 8080 or Z80 based machines.  Even commercial C compilers
  20. such as BDS C implemented floating point arithmetic via special
  21. functions which were included in an add-on floating point library.
  22. Programs which I wrote using floating point arithmetic ususally handled
  23. floating point numbers as strings which were I/O'd with %s rather than
  24. %f.  There may be floating point libraries around for small C.  This is
  25. certainly the place to advirtise for them.  Another source of
  26. information, or so I'm told, is the CP/M echo of FidoNet which is
  27. reportedly a good deal more active than this one.
  28.  
  29.  
  30. -- 
  31. "Everything works if you let it"    |            Lindsay Haisley
  32. -- The Roadie                       |            fmouse@wixer.cactus.org
  33.  
  34.  
  35.