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