PHP Classes

Power of 2 class: Convert an integer in binary values and vice-versa

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 267 All time: 7,731 This week: 279Up
Version License Categories
power 1.0GNU General Publi...Math


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.

Picture of Jose Giambruno
Name: Jose Giambruno <contact>
Classes: 2 packages by
Country: Uruguay Uruguay
Age: 71
All time rank: 25502 in Uruguay Uruguay
Week rank: 346 Up1 in Uruguay Uruguay Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file p2doc_en.php Aux. english documentation
Accessible without login Plain text file p2doc_sp.php Aux. documentacion en espaņol
Accessible without login Plain text file p2_sample.php Example Sample script for class power2
Plain text file power2_class.php Class the class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:7,731
This week:279Up
User Comments (1)
14 years ago (kishore kumar)