Class

eZBCMath

class eZBCMath extends eZPHPMath

Constants

DEFAULT_SCALE

Properties

$Scale

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)

from eZPHPMath
intval($number)

from eZPHPMath
fractval($number, $precision = false)

from eZPHPMath
__construct($params = array())

scale()

setScale($scale)

Details

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

Parameters

$a
$b

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

Parameters

$a
$b

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

Parameters

$a
$b

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

Parameters

$a
$b

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

Parameters

$base
$exp

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

Parameters

$value
$precision
$target

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

Parameters

$value
$precision
$target

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

Parameters

$value
$precision
$target

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

Parameters

$number
$precision
$target

in eZPHPMath at line 124
public intval($number)

Parameters

$number

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

Parameters

$number
$precision

at line 20
public __construct($params = array())

Parameters

$params

at line 28
public scale()

at line 33
public setScale($scale)

Parameters

$scale