home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14173 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  1.5 KB

  1. Path: sparky!uunet!destroyer!gumby!wupost!waikato.ac.nz!ldo
  2. From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: AIFF and 'extended' type
  5. Message-ID: <1992Aug19.100049.10187@waikato.ac.nz>
  6. Date: 19 Aug 92 10:00:49 +1200
  7. References: <1992Aug17.204116.11424@nosc.mil>
  8. Organization: University of Waikato, Hamilton, New Zealand
  9. Lines: 20
  10.  
  11. In article <1992Aug17.204116.11424@nosc.mil>, frantzen@nosc.mil
  12. (Louise E. Frantzen) asks how to interpret the "extended" data type
  13. for an AIFF sample rate.
  14.  
  15. The SANE real number types are explained in the Apple Numerics Manual, 2nd ed.
  16. There are three real types: single (32 bits), double (64 bits) and extended
  17. (80 bits for software SANE, 96 bits for the hardware FPU). The one used
  18. in AIFF is the 80-bit software SANE type, and consists of a 1-bit sign,
  19. a 15-bit exponent and a 64-bit mantissa (page 18).
  20.  
  21. It's interesting that Apple's guidelines state that the extended type is
  22. only meant for intermediate temporary values, to minimize rounding errors
  23. in multi-step calculations: you should *not* use it as a type for permanent
  24. storage of data. And yet they go and break their own guidelines with AIFF...
  25.  
  26. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  27. Computer Services Dept                     fax: +64-7-838-4066
  28. University of Waikato            electric mail: ldo@waikato.ac.nz
  29. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  30. To crash is human; to reboot, divine.
  31.