what's the easiest way to round up to power of 2?

BlitzMax Forums/BlitzMax Programming/what's the easiest way to round up to power of 2?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

what a handy function! Thanks TonyG, glad to see you are on the ball this morning.

Yeah just thought theere might be a fancy maths way without a loop.

Hey I that funciton won't compile, which module is it in?