PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 268 All time: 7,738 This week: 560Up
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 (4)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:268
This week:0
All time:7,738
This week:560Up
User Comments (1)
Excellent
15 years ago (kishore kumar)
70%StarStarStarStar