Math: Power of 2 class
Jose Giambruno (contact me)
This is a simple class that can convert an integer number into an array of binary sequence values that represent the number decomposed in power of 2 parcels.
The result of the decomposition is stored in an array class variable.
The class can also perform the opposite operation that is to depart from a binary sequence array to compute the integer number represented by the sequence.
Click here for detailed information about this class on phpclasses.org