Utility class for proxying math function to bcmath functions, if present, otherwise to PHP builtin math operators, with limited detection of overflow conditions.
Sampling of PHP environments and platforms suggests that at least 80% to 90% support bcmath. Thus, this file should be as light as possible.
Located in /Locale/Math.php (line 35)
Class | Description |
---|---|
![]() |
Utility class for proxying math function to bcmath functions, if present, otherwise to PHP builtin math operators, with limited detection of overflow conditions. |
Normalizes an input to standard english notation Fixes a problem of BCMath with setLocale which is PHP related
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);
Documentation generated on Sun, 27 May 2007 23:25:43 -0700 by phpDocumentor 1.3.2