home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.apple2
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!torn!newshost.uwo.ca!gaul.csd.uwo.ca!hackett
- From: hackett@gaul.csd.uwo.ca (Mike Hackett)
- Subject: Need SANE info and macros
- Organization: Computer Science Dept., Univ. of Western Ontario, London, Canada
- Date: Fri, 14 Aug 1992 02:48:42 GMT
- Message-ID: <1992Aug14.024842.16316@julian.uwo.ca>
- Sender: news@julian.uwo.ca (USENET News System)
- Nntp-Posting-Host: obelix.gaul.csd.uwo.ca
- Lines: 22
-
-
- Hi all. I'm looking for some basic information on calling SANE,
- preferably with some ORCA/M macros. I know I'll need the Apple Numerics
- Manual to do much work, and I will try to make room in the budget to pick it
- up soon, but right now all I need to know is how to convert integers to
- floats, and multiply and divide them together. Specifically, I'm trying to
- find a percentage to three decimal points. I figure I can probably come up
- with a routine to perform the calculation using integers and possibly
- Integer Math fractions, but eventually the program will need to support the
- evaluation of floating point expressions, so I might as well just use SANE
- now anyway.
-
- BTW, does SANE include routines to convert a floating point value to a
- string? And if it does, what sort of control do you have over the format.
- Again, macros and info would be greatly appreciated. Thanks in advance.
-
-
- =====================================================================
- Mike Hackett | "She wouldn't make love,
- <hackett@gaul.csd.uwo.ca> | but she could make good sandwich"
- Honors Computer Science IV | -Ian Anderson, "Budapest"
- University of Western Ontario | - _Crest of a Knave_
-