PHP Classes

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 Bookmark in
  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 (10 years ago) RSS 2.0 feedNot enough user ratingsTotal: 258 All time: 7,114 This week: 1,079Up
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
Age: 63
All time rank: 23842 in Uruguay Uruguay
Week rank: 1600 Up3 in Uruguay Uruguay Down
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:258All time:7,114
 This week:0This week:1,079Up
 User Comments (1)  
6 years ago (kishore kumar)