API Documentation

Locale/Math/PhpMath.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Locale
version
$Id: PhpMath.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Locale_Math_PhpMath

Description

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.

Zend_Locale_Math_PhpMath

Extends from
Zend_Locale_Math
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Locale
Properties
$defaultScale
$defaultPrecision
Methods
disable
Add
Sub
Pow
Mul
Div
Sqrt
Mod
Comp
Scale

Description

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.

Properties

$defaultPrecision

 $defaultPrecision = ''

Details

visibility
public
default
final
false
static
true

$defaultScale

 $defaultScale = ''

Details

visibility
public
default
final
false
static
true

Methods

Add

Add(  $op1,  $op2,  $scale = null ) :
Arguments
$op1
$op2
$scale
Details
visibility
public
final
false
static
true

Comp

Comp(  $op1,  $op2,  $scale = null ) :
Arguments
$op1
$op2
$scale
Details
visibility
public
final
false
static
true

Div

Div(  $op1,  $op2,  $scale = null ) :
Arguments
$op1
$op2
$scale
Details
visibility
public
final
false
static
true

Mod

Mod(  $op1,  $op2 ) :
Arguments
$op1
$op2
Details
visibility
public
final
false
static
true

Mul

Mul(  $op1,  $op2,  $scale = null ) :
Arguments
$op1
$op2
$scale
Details
visibility
public
final
false
static
true

Pow

Pow(  $op1,  $op2,  $scale = null ) :
Arguments
$op1
$op2
$scale
Details
visibility
public
final
false
static
true

Scale

Scale(  $scale ) :
Arguments
$scale
Details
visibility
public
final
false
static
true

Sqrt

Sqrt(  $op1,  $scale = null ) :
Arguments
$op1
$scale
Details
visibility
public
final
false
static
true

Sub

Sub(  $op1,  $op2,  $scale = null ) :
Arguments
$op1
$op2
$scale
Details
visibility
public
final
false
static
true

disable

disable( ) :
Details
visibility
public
final
false
static
true
Documentation was generated by DocBlox.