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    
Last Updated Ratings Unique User Downloads Download Rankings
2020-06-28 (15 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 27 This week: 2All time: 9,937 This week: 123Up
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: 391956 in Argentina Argentina
Week rank: 129 Up2 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:27
This week:2
All time:9,937
This week:123Up

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