home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / apple2 / 19005 < prev    next >
Encoding:
Text File  |  1992-08-13  |  1.7 KB  |  34 lines

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