[Numpy-discussion] np.longlong casts to int

Pierre Haessig pierre.haessig at crans.org
Mon Feb 27 03:31:13 EST 2012


Le 24/02/2012 16:38, Robert Pyle a écrit :
>> I wonder what is the use case of these 80 bits numbers apart from what
>> > is described as "keeping intermediate results" when performing
>> > exponentiation on doubles ?
> In AIFF audio files, the sample rate is stored in the Common Chunk as an 80-bit "extended" floating-point number.  The field allocated for this is exactly 80 bits wide (i.e., no padding to 96 or 128).  The 1989 Apple document defining AIFF can be found at </www-mmsp.ece.mcgill.ca/documents/audioformats/aiff/Docs/AIFF-1.3.pdf>
>
> I once wrote my own "save as AIFF" routine and I remember it was a pain to format the 80-bit extended float.
That's an interesting use case ! Thanks for sharing !
-- 
Pierre

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20120227/fb48b81f/attachment.sig>


More information about the NumPy-Discussion mailing list