Class

eZPHPMath

class eZPHPMath

Methods

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 31
public add($a, $b)

Parameters

$a
$b

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

Parameters

$a
$b

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

Parameters

$a
$b

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

Parameters

$a
$b

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

Parameters

$base
$exp

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

Parameters

$value
$precision
$target

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

Parameters

$value
$precision
$target

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

Parameters

$value
$precision
$target

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

Parameters

$number
$precision
$target

at line 124
public intval($number)

Parameters

$number

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

Parameters

$number
$precision