From 9f108dd1a969473375341d92a7b1252fa2cedc9a Mon Sep 17 00:00:00 2001 From: mszulecki Date: Thu, 14 Jun 2007 17:09:01 +0000 Subject: Initial import. git-svn-id: http://svn.sukimashita.com/repos/mailadmin/trunk@2 4281df72-ff29-0410-8fee-2d9ac0c5f5a7 --- lib/helper/FilesHelper.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 lib/helper/FilesHelper.php (limited to 'lib/helper/FilesHelper.php') diff --git a/lib/helper/FilesHelper.php b/lib/helper/FilesHelper.php new file mode 100644 index 0000000..ff290d6 --- /dev/null +++ b/lib/helper/FilesHelper.php @@ -0,0 +1,27 @@ +=$factor;$i++) + $val /= $factor; + $p = strpos($val, "."); + if($p !== false && $p > $digits) $val = round($val); + elseif($p !== false) $val = round($val, $digits-$p); + return round($val, $digits) . " " . $symbols[$i] . $bB; +} + +?> -- cgit v1.1-32-gdbae