Find the nearest power to a number | ScratchStats