[PD] int float with pure data

Mathieu Bouchard matju at artengine.ca
Tue Dec 12 06:25:36 CET 2006


On Mon, 11 Dec 2006, Mathieu Bouchard wrote:

> In binary (internally to pd), you can count up to 16777216. If it were 
> float64, then it'd be up to 9007199254740992. This has to do with how 
> many bits in float32 and float64 are reserved for the exponent (it 
> doesn't double from one to the other). However, when you save to a file, 
> pd joyously rounds anything above 1000000.

Actually, after how many decimal digits should pd switch to exponential 
mode? the current 6, or else 7 or 8 ?

With 8, all the precision of the float32 number is found in decimal, 
whereas with 7 (or 6), all the precision of the decimal number is found in 
the float32.

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
| Freelance Digital Arts Engineer, Montréal QC Canada


More information about the Pd-list mailing list