API Documentation

Zend/Crypt/Math/BigInteger/Bcmath.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_Crypt  
Subpackage
Math  
Version
$Id: Bcmath.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Crypt_Math_BigInteger_Bcmath

Package: Zend\Crypt

Support for arbitrary precision mathematics in PHP.

Zend_Crypt_Math_BigInteger_Bcmath is a wrapper across the PHP BCMath extension.

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

Methods

methodpublicadd( string $left_operand, string $right_operand ) : string

Adds two arbitrary precision numbers

Parameters
Name Type Description
$left_operand string
$right_operand string
Returns
Type Description
string
methodpublicbinaryToInteger(  $operand ) : void

Parameters
Name Type Description
$operand
methodpubliccompare( string $left_operand, string $right_operand ) : int

Compare two big integers and returns result as an integer where 0 means both are identical, 1 that left_operand is larger, or -1 that right_operand is larger.

Parameters
Name Type Description
$left_operand string
$right_operand string
Returns
Type Description
int
methodpublicdivide( string $left_operand, string $right_operand ) : string|null

Divide two big integers and return result or NULL if the denominator is zero.

Parameters
Name Type Description
$left_operand string
$right_operand string
Returns
Type Description
string|null
methodpublichexToDecimal(  $operand ) : void

Parameters
Name Type Description
$operand
methodpublicinit( string $operand, int $base = 10 ) : string

Initialise a big integer into an extension specific type. This is not applicable to BCMath.

Parameters
Name Type Description
$operand string
$base int
Returns
Type Description
string
methodpublicintegerToBinary(  $operand ) : void

Parameters
Name Type Description
$operand
methodpublicmodulus( string $left_operand,  $modulus ) : string

Parameters
Name Type Description
$left_operand string
$modulus
Returns
Type Description
string
methodpublicmultiply( string $left_operand, string $right_operand ) : string

Parameters
Name Type Description
$left_operand string
$right_operand string
Returns
Type Description
string
methodpublicpow( string $left_operand, string $right_operand ) : string

Parameters
Name Type Description
$left_operand string
$right_operand string
Returns
Type Description
string
methodpublicpowmod( string $left_operand, string $right_operand,  $modulus ) : string

Parameters
Name Type Description
$left_operand string
$right_operand string
$modulus
Returns
Type Description
string
methodpublicsqrt(  $operand ) : string

Parameters
Name Type Description
$operand
Returns
Type Description
string
methodpublicsubtract( string $left_operand, string $right_operand ) : string

Parameters
Name Type Description
$left_operand string
$right_operand string
Returns
Type Description
string
Documentation was generated by DocBlox 0.15.1.