eZPublish  4.7
eZPHPMath Class Reference

Handles calculation using standard php's functions. More...

+ Inheritance diagram for eZPHPMath:

Public Member Functions

 add ($a, $b)
 
 adjustFractPart ($number, $precision, $target)
 
 ceil ($value, $precision, $target)
 
 div ($a, $b)
 
 eZPHPMath ($params=array())
 
 floor ($value, $precision, $target)
 
 fractval ($number, $precision=false)
 
 intval ($number)
 
 mul ($a, $b)
 
 pow ($base, $exp)
 
 round ($value, $precision, $target)
 
 sub ($a, $b)
 

Static Public Member Functions

static create ($type, $params=array())
 

Detailed Description

Handles calculation using standard php's functions.

Member Function Documentation

eZPHPMath::add (   $a,
  $b 
)

Referenced by adjustFractPart(), ceil(), and floor().

eZPHPMath::adjustFractPart (   $number,
  $precision,
  $target 
)

Referenced by ceil(), floor(), round(), and eZBCMath\round().

eZPHPMath::ceil (   $value,
  $precision,
  $target 
)

Referenced by eZBCMath\ceil().

static eZPHPMath::create (   $type,
  $params = array() 
)
static
eZPHPMath::div (   $a,
  $b 
)

Referenced by adjustFractPart(), ceil(), and floor().

eZPHPMath::eZPHPMath (   $params = array())
eZPHPMath::floor (   $value,
  $precision,
  $target 
)

Referenced by eZBCMath\floor().

eZPHPMath::fractval (   $number,
  $precision = false 
)
eZPHPMath::intval (   $number)
eZPHPMath::mul (   $a,
  $b 
)
eZPHPMath::pow (   $base,
  $exp 
)

Referenced by adjustFractPart(), ceil(), and floor().

eZPHPMath::round (   $value,
  $precision,
  $target 
)
eZPHPMath::sub (   $a,
  $b 
)

Referenced by adjustFractPart().


The documentation for this class was generated from the following file: