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

Recommend this page to a friend!
  Info   Example   View files (2)   Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2020-06-28 (1 month ago) Not yet rated by the usersTotal: 30 This week: 1All time: 9,946 This week: 255
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: 43
All time rank: 391356 in Argentina Argentina
Week rank: 243 3 in Argentina Argentina

  Files  
File Role Description
examples.php Example Examples
magnitudePrefix.class.php Class The magnitudePrefix class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:30
This week:1
All time:9,946
This week:255

For more information send a message to info at phpclasses dot org.