[PD] converting decimal to binary
Mathieu Bouchard
matju at artengine.ca
Sat Jul 1 03:27:40 CEST 2006
On Tue, 27 Jun 2006, Chuckk Hubbard wrote:
> Maybe Federico's idea could be modified:
> [expr $f1>>$f2&1]
> and increment $f2 indefinitely?
Note that $f2 may or may not be mod 32 or mod 64 depending on which
processor it's run on. Also, the >> operator is run in the int32 domain,
so $f1 = 4e+09 will result in some negative value no matter what $f2 is.
If >> was really executed in float32, instead all outputs would be zero
starting at some value of $f2 before $f2=127.
_ _ __ ___ _____ ________ _____________ _____________________ ...
| 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