=1000) { $c++; $a = $a/1000; } return number_format( $a,( $c ? 2 : 0 ),",","." )." ".$unim[$c]; }