home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / programm / 17841 < prev    next >
Encoding:
Internet Message Format  |  1992-12-27  |  880 b 

  1. Path: sparky!uunet!spool.mu.edu!nigel.msen.com!ilium!sycom!ad99s461
  2. From: ad99s461@sycom.mi.org (Alex Deburie)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Stupid C question
  5. Distribution: world
  6. X-BBS-Software: EXCELSIOR! V0.975
  7. Message-ID: <ad99s461.037k@sycom.mi.org>
  8. Date: 27 Dec 92 19:17:42 EST
  9. Organization: Michigan Information eXchange
  10. Lines: 13
  11.  
  12. Okay, I've had SAS-C 6.0 for about 2 weeks and I'm very pleased. Between GST's 
  13. and the Workbench interface, I doubt I could ask for a better introduction to 
  14. C on the Amiga.
  15.  
  16. However, I have one very stupid (simple?) question. HOW DOES ONE COVERT A 
  17. FLOATING POINT VALUE TO AN INTEGER???!!!  I see functions like modf(), but 
  18. still that returns the integral part of the number as a float. And casting 
  19. seems to always return a 0!
  20.  
  21. What should I do? Go back to BASIC?? ;^)
  22.  
  23.      -- Alex Deburie
  24.         ad99s461@sycom.mi.org
  25.