Zend Framework
1.12
|
Static Public Member Functions | |
static | isBcmathDisabled () |
static | round ($op1, $precision=0) |
Surprisingly, the results of this implementation of round() prove better than the native PHP round(). | |
static | floatalize ($value) |
Convert a scientific notation to float Additionally fixed a problem with PHP <= 5.2.x with big integers. | |
static | normalize ($value) |
Normalizes an input to standard english notation Fixes a problem of BCMath with setLocale which is PHP related. | |
static | localize ($value) |
Localizes an input from standard english notation Fixes a problem of BCMath with setLocale which is PHP related. | |
static | exponent ($value, $scale=null) |
Changes exponential numbers to plain string numbers Fixes a problem of BCMath with numbers containing exponents. | |
static | Add ($op1, $op2, $scale=null) |
BCAdd - fixes a problem of BCMath and exponential numbers. | |
static | Sub ($op1, $op2, $scale=null) |
BCSub - fixes a problem of BCMath and exponential numbers. | |
static | Pow ($op1, $op2, $scale=null) |
BCPow - fixes a problem of BCMath and exponential numbers. | |
static | Mul ($op1, $op2, $scale=null) |
BCMul - fixes a problem of BCMath and exponential numbers. | |
static | Div ($op1, $op2, $scale=null) |
BCDiv - fixes a problem of BCMath and exponential numbers. | |
static | Sqrt ($op1, $scale=null) |
BCSqrt - fixes a problem of BCMath and exponential numbers. | |
static | Mod ($op1, $op2) |
BCMod - fixes a problem of BCMath and exponential numbers. | |
static | Comp ($op1, $op2, $scale=null) |
BCComp - fixes a problem of BCMath and exponential numbers. | |
Static Public Attributes | |
static | $_bcmathDisabled = false |
static | $add = array('Zend_Locale_Math', 'Add') |
static | $sub = array('Zend_Locale_Math', 'Sub') |
static | $pow = array('Zend_Locale_Math', 'Pow') |
static | $mul = array('Zend_Locale_Math', 'Mul') |
static | $div = array('Zend_Locale_Math', 'Div') |
static | $comp = array('Zend_Locale_Math', 'Comp') |
static | $sqrt = array('Zend_Locale_Math', 'Sqrt') |
static | $mod = array('Zend_Locale_Math', 'Mod') |
static | $scale = 'bcscale' |
|
static |
BCAdd - fixes a problem of BCMath and exponential numbers.
string | $op1 | |
string | $op2 | |
integer | $scale |
|
static |
BCComp - fixes a problem of BCMath and exponential numbers.
string | $op1 | |
string | $op2 | |
integer | $scale |
|
static |
BCDiv - fixes a problem of BCMath and exponential numbers.
string | $op1 | |
string | $op2 | |
integer | $scale |
|
static |
Changes exponential numbers to plain string numbers Fixes a problem of BCMath with numbers containing exponents.
integer | $value | Value to erase the exponent |
integer | $scale | (Optional) Scale to use |
|
static |
Convert a scientific notation to float Additionally fixed a problem with PHP <= 5.2.x with big integers.
string | $value |
|
static |
|
static |
Localizes an input from standard english notation Fixes a problem of BCMath with setLocale which is PHP related.
integer | $value | Value to normalize |
|
static |
BCMod - fixes a problem of BCMath and exponential numbers.
string | $op1 | |
string | $op2 |
|
static |
BCMul - fixes a problem of BCMath and exponential numbers.
string | $op1 | |
string | $op2 | |
integer | $scale |
|
static |
Normalizes an input to standard english notation Fixes a problem of BCMath with setLocale which is PHP related.
integer | $value | Value to normalize |
|
static |
BCPow - fixes a problem of BCMath and exponential numbers.
string | $op1 | |
string | $op2 | |
integer | $scale |
|
static |
Surprisingly, the results of this implementation of round() prove better than the native PHP round().
For example, try: round(639.795, 2); round(267.835, 2); round(0.302515, 5); round(0.36665, 4); then try: Zend_Locale_Math::round('639.795', 2);
|
static |
BCSqrt - fixes a problem of BCMath and exponential numbers.
string | $op1 | |
integer | $scale |
|
static |
BCSub - fixes a problem of BCMath and exponential numbers.
string | $op1 | |
string | $op2 | |
integer | $scale |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |