[PD] converting decimal to binary
Federico
xaero at inwind.it
Mon Jun 26 01:07:26 CEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
adam armfield wrote:
> this is making my brain hurt... is there an object to
> do it automatically?...
>
> for various reasons (mostly due to being on a windows
> machine and wanting a quick solution) i'd like to do
> this with expr or other built in objects (ruby, py
> etc. not really an option as of now)
[nbx]
|
[expr $f1>>0&1;
$f1>>1&1;
$f1>>2&1;
$f1>>3&1;
...
]
and so on...
depending on how many bits you want to display
hth,
ciao
- --
Federico
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEnxcuxlXK3KziJfcRAul2AJ41cmeaFIPF1AE52Vw9biR7PH3SnACfc3qB
UPyOi2Ng42EO9O86qCt4Q98=
=xHu/
-----END PGP SIGNATURE-----
More information about the Pd-list
mailing list