Planet storage capacity updates added
Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
parent
66875791e6
commit
e15d9f81a7
9 changed files with 108 additions and 46 deletions
|
|
@ -2,8 +2,19 @@
|
|||
|
||||
class Math
|
||||
{
|
||||
const DEFAULT_PRECISTION = 0;
|
||||
|
||||
protected static $_singleton = null;
|
||||
|
||||
public static function setPrecision($precision = null)
|
||||
{
|
||||
if ($precision === null) {
|
||||
$precision = self::DEFAULT_PRECISTION;
|
||||
}
|
||||
|
||||
self::getSingleton()->setPrecision($precision);
|
||||
}
|
||||
|
||||
public static function getSingleton()
|
||||
{
|
||||
if (self::$_singleton === null) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue