[PD] 23bit t_float vs. 20bit display in Pd's integer representation

Mathieu Bouchard matju at artengine.ca
Mon Jun 19 21:36:27 CEST 2006


On Sun, 18 Jun 2006, Hans-Christoph Steiner wrote:

> First I off, I forgot one thing in my analysis of the bitness of Pd's 
> integers: the sign.  So its 20 bits, I forgot the bit for the sign ( 
> -999999 to 999999).  So this leads me to the question which Matju 
> brought up: the internal representation (t_float) should be able to 
> store 23 bits of integer information.  Why does Pd only display up to 
> 20bits on integer data?  If Pd displayed 7 digits plus sign, it would 
> cover the 23 bits...

if you include the sign as part of the mantissa, then it's 24 bits. you 
need slightly more than 7 digits to cover all that range. you also need to 
take the space taken by writing the decimal point.

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| 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