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