eZ Publish Community Project (Legacy Stack) 2013.4
Class

eZPHPMath

class eZPHPMath

Methods

eZPHPMath($params = array())

add($a, $b)

sub($a, $b)

mul($a, $b)

div($a, $b)

pow($base, $exp)

round($value, $precision, $target)

ceil($value, $precision, $target)

floor($value, $precision, $target)

adjustFractPart($number, $precision, $target)

intval($number)

fractval($number, $precision = false)

Details

at line 18
public eZPHPMath($params = array())

Parameters

$params

at line 35
public add($a, $b)

Parameters

$a
$b

at line 40
public sub($a, $b)

Parameters

$a
$b

at line 45
public mul($a, $b)

Parameters

$a
$b

at line 51
public div($a, $b)

Parameters

$a
$b

at line 56
public pow($base, $exp)

Parameters

$base
$exp

at line 61
public round($value, $precision, $target)

Parameters

$value
$precision
$target

at line 68
public ceil($value, $precision, $target)

Parameters

$value
$precision
$target

at line 91
public floor($value, $precision, $target)

Parameters

$value
$precision
$target

at line 109
public adjustFractPart($number, $precision, $target)

Parameters

$number
$precision
$target

at line 128
public intval($number)

Parameters

$number

at line 140
public fractval($number, $precision = false)

Parameters

$number
$precision