PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2005-02-03 (11 years ago) RSS 2.0 feedNot enough user ratingsTotal: 259 All time: 7,321 This week: 1,117Up
Version License Categories
power 1.0GNU General Publi...Math
Description Author

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
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  
 0%
Total:259
This week:0
All time:7,321
This week:1,117Up
User Comments (1)
Excellent
7 years ago (kishore kumar)
70%StarStarStarStar