[PD] nearest power of 2

hard off hard.off at gmail.com
Thu Dec 11 16:48:48 CET 2008


what's the easiest way for pd to find the nearest power of 2 for any float?


so 10 would give a result of 8,
53 would give a result of 64,

etc..


http://en.wikipedia.org/wiki/Power_of_two#Algorithm_to_convert_any_number_into_nearest_power_of_two_number
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20081212/bb3be031/attachment.htm>


More information about the Pd-list mailing list