[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/include/Zend/Crypt/Math/BigInteger/ -> Bcmath.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id: Bcmath.php 24593 2012-01-05 20:35:02Z matthew $
File Size: 203 lines (5 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 1 file
 include/Zend/Crypt/Math/BigInteger/Interface.php

Defines 1 class

Zend_Crypt_Math_BigInteger_Bcmath:: (13 methods):
  init()
  add()
  subtract()
  compare()
  divide()
  modulus()
  multiply()
  pow()
  powmod()
  sqrt()
  binaryToInteger()
  integerToBinary()
  hexToDecimal()


Class: Zend_Crypt_Math_BigInteger_Bcmath  - X-Ref

Support for arbitrary precision mathematics in PHP.

Zend_Crypt_Math_BigInteger_Bcmath is a wrapper across the PHP BCMath
extension.

init($operand, $base = 10)   X-Ref
Initialise a big integer into an extension specific type. This is not
applicable to BCMath.

param: string $operand
param: int $base
return: string

add($left_operand, $right_operand)   X-Ref
Adds two arbitrary precision numbers

param: string $left_operand
param: string $right_operand
return: string

subtract($left_operand, $right_operand)   X-Ref

param: string $left_operand
param: string $right_operand
return: string

compare($left_operand, $right_operand)   X-Ref
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.

param: string $left_operand
param: string $right_operand
return: int

divide($left_operand, $right_operand)   X-Ref
Divide two big integers and return result or NULL if the denominator
is zero.

param: string $left_operand
param: string $right_operand
return: string|null

modulus($left_operand, $modulus)   X-Ref

param: string $left_operand
param: string $right_operand
return: string

multiply($left_operand, $right_operand)   X-Ref

param: string $left_operand
param: string $right_operand
return: string

pow($left_operand, $right_operand)   X-Ref

param: string $left_operand
param: string $right_operand
return: string

powmod($left_operand, $right_operand, $modulus)   X-Ref

param: string $left_operand
param: string $right_operand
return: string

sqrt($operand)   X-Ref

param: string $left_operand
param: string $right_operand
return: string

binaryToInteger($operand)   X-Ref
No description

integerToBinary($operand)   X-Ref
No description

hexToDecimal($operand)   X-Ref
No description



Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1