API Documentation

Zend/Locale/Math/PhpMath.php

Show: inherited
Table of Contents

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Locale  
Version
$Id: PhpMath.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Locale_Math_PhpMath

Package: Zend\Locale

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. This file should only be loaded for the 10% to 20% lacking access to the bcmath extension.

Parent(s)
\Zend_Locale_Math
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertypublic  $defaultPrecision= ''
static
Details
Type
Propertypublic  $defaultScale= ''
static
Details
Type

Methods

methodpublicAdd(  $op1,  $op2,  $scale = null ) : void
static

Parameters
Name Type Description
$op1
$op2
$scale
methodpublicComp(  $op1,  $op2,  $scale = null ) : void
static

Parameters
Name Type Description
$op1
$op2
$scale
methodpublicDiv(  $op1,  $op2,  $scale = null ) : void
static

Parameters
Name Type Description
$op1
$op2
$scale
methodpublicMod(  $op1,  $op2 ) : void
static

Parameters
Name Type Description
$op1
$op2
methodpublicMul(  $op1,  $op2,  $scale = null ) : void
static

Parameters
Name Type Description
$op1
$op2
$scale
methodpublicPow(  $op1,  $op2,  $scale = null ) : void
static

Parameters
Name Type Description
$op1
$op2
$scale
methodpublicScale(  $scale ) : void
static

Parameters
Name Type Description
$scale
methodpublicSqrt(  $op1,  $scale = null ) : void
static

Parameters
Name Type Description
$op1
$scale
methodpublicSub(  $op1,  $op2,  $scale = null ) : void
static

Parameters
Name Type Description
$op1
$op2
$scale
methodpublicdisable( ) : void
static

Documentation was generated by DocBlox 0.15.1.