eZPublish  4.7
eZBCMath Class Reference

Handles calculation using bcmath library. More...

+ Inheritance diagram for eZBCMath:
+ Collaboration diagram for eZBCMath:

Public Member Functions

 add ($a, $b)
 
 ceil ($value, $precision, $target)
 
 div ($a, $b)
 
 eZBCMath ($params=array())
 
 floor ($value, $precision, $target)
 
 mul ($a, $b)
 
 pow ($base, $exp)
 
 round ($value, $precision, $target)
 
 scale ()
 
 setScale ($scale)
 
 sub ($a, $b)
 
- Public Member Functions inherited from eZPHPMath
 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)
 

Public Attributes

 $Scale
 
const DEFAULT_SCALE = 10
 

Additional Inherited Members

- Static Public Member Functions inherited from eZPHPMath
static create ($type, $params=array())
 

Detailed Description

Handles calculation using bcmath library.

Member Function Documentation

eZBCMath::add (   $a,
  $b 
)

Referenced by round().

eZBCMath::ceil (   $value,
  $precision,
  $target 
)
eZBCMath::div (   $a,
  $b 
)

Referenced by round().

eZBCMath::eZBCMath (   $params = array ())
eZBCMath::floor (   $value,
  $precision,
  $target 
)
eZBCMath::mul (   $a,
  $b 
)
eZBCMath::pow (   $base,
  $exp 
)

Referenced by round().

eZBCMath::round (   $value,
  $precision,
  $target 
)
eZBCMath::scale ( )
eZBCMath::setScale (   $scale)

Referenced by eZBCMath().

eZBCMath::sub (   $a,
  $b 
)

Member Data Documentation

eZBCMath::$Scale

Referenced by scale().

const eZBCMath::DEFAULT_SCALE = 10

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