PHP Classes

PHP Order of Magnitude Prefix: Get the name of the prefix for a measure value

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 37 All time: 10,705 This week: 189Up
Version License PHP version Categories
magnitudeprefix 1.0GNU Lesser Genera...5PHP 5, Conversion
Description 

Author

This class can get the name of the prefix for a measure value.

It takes as parameter the number of a measured value like for instance: seconds, meters, grams, etc..

The class returns string that can be used to represent the same number of the measure value using a prefix like Kilo, Mega, Giga, Tera, mili, micro, nano, pico, etc.. For example, "7000 meters" can be displayed as "7 Kilo meters".

Picture of Alejandro Bazan
Name: Alejandro Bazan <contact>
Classes: 2 packages by
Country: Argentina Argentina
Age: 46
All time rank: 396556 in Argentina Argentina
Week rank: 496 Up3 in Argentina Argentina Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file examples.php Example Examples
Plain text file magnitudePrefix.class.php Class The magnitudePrefix class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:37
This week:0
All time:10,705
This week:189Up