PHP Classes

File: sets/si_short_strict.set.php

Recommend this page to a friend!
  Classes of Alex F. Bustos   SI Prefix Converter   sets/si_short_strict.set.php   Download  
File: sets/si_short_strict.set.php
Role: Auxiliary script
Content type: text/plain
Description: Introduced in 1.2, according wit the CGPM
Class: SI Prefix Converter
Convert a number to a string appending a prefix
Author: By
Last change: Update of sets/si_short_strict.set.php
Date: 2 months ago
Size: 531 bytes
 

Contents

Class file image Download
<?php
//Short version prefixes, reviewed according the CGPM
$sci_list=array(
    -
24=>array('y'),
    -
21=>array('z'),
    -
18=>array('a'),
    -
15=>array('f'),
    -
12=>array('p'),
    -
9=>array('n'),
    -
6=>array('u','µ','µ'),
    -
3=>array('m'),
    -
2=>array('c'),
    -
1=>array('d'),
   
0=>array(''),
   
1=>array('da'),
   
2=>array('h'),
   
3=>array('k'),
   
6=>array('M'),
   
9=>array('G'),
   
12=>array('T'),
   
15=>array('P'),
   
18=>array('E'),
   
21=>array('Z'),
   
24=>array('Y')
);
//Common Used Settings
$sci_min = -12;
$sci_max = 12;
$sci_base = 10;
$sci_space = 3;