Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (9 years ago) RSS 2.0 feedNot enough user ratingsTotal: 257 All time: 6,818 This week: 1,613Up
Version License Categories  
power 1.0GNU General Public Lice...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
Age: 61
All time rank: 23062 in Uruguay Uruguay
Week rank: 1819 Up2 in Uruguay Uruguay Equal
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:257All time:6,818
 This week:0This week:1,613Up
 User Comments (1)  
 
Excellent
4 years ago (kishore kumar)
70%StarStarStarStar