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 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 30 All time: 9,947 This week: 252Up
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: 738 Up11 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:30
This week:0
All time:9,947
This week:252Up

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