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
_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to