Math_Integer
[ class tree: Math_Integer ] [ index: Math_Integer ] [ all elements ]

Element index for package Math_Integer

[ a ] [ b ] [ c ] [ d ] [ g ] [ h ] [ i ] [ m ] [ n ] [ p ] [ s ]

a

abs
in file IntegerOp.php, method Math_IntegerOp::abs()
    Returns the absolute value of a Math_Integer number
add
in file IntegerOp.php, method Math_IntegerOp::add()
    Add two Math_Integer objects: $i1 + $i2
top

b

bcmath.php
procedural page bcmath.php
top

c

compare
in file IntegerOp.php, method Math_IntegerOp::compare()
    Compare two Math_Integer objects.
common.php
procedural page common.php
top

d

div
in file IntegerOp.php, method Math_IntegerOp::div()
    Divide two Math_Integer objects: $i1 / $i2
top

g

gcd
in file IntegerOp.php, method Math_IntegerOp::gcd()
    Calculates the GCD of 2 Math_Integer objects
gmp.php
procedural page gmp.php
top

h

HAS_BCMATH
in file Integer.php, constant HAS_BCMATH
HAS_GMP
in file Integer.php, constant HAS_GMP
top

i

isEven
in file IntegerOp.php, method Math_IntegerOp::isEven()
    Checks if the Math_Integer object is even
isInteger
in file IntegerOp.php, method Math_IntegerOp::isInteger()
    Checks if the given parameter is a Math_Integer object
isNegative
in file IntegerOp.php, method Math_IntegerOp::isNegative()
    Checks if the Math_Integer object is negative
isOdd
in file IntegerOp.php, method Math_IntegerOp::isOdd()
    Checks if the Math_Integer object is Odd
isPositive
in file IntegerOp.php, method Math_IntegerOp::isPositive()
    Checks if the Math_Integer object is positive
isZero
in file IntegerOp.php, method Math_IntegerOp::isZero()
    Checks if the Math_Integer object is zero
Integer.php
procedural page Integer.php
IntegerOp.php
procedural page IntegerOp.php
top

m

Math_IntegerOp
in file IntegerOp.php, class Math_IntegerOp
    Class implementing operations on Math_Integer objects. If available it will use the GMP or BCMATH libraries. Will default to the standard PHP integer representation otherwise.
MATH_INTEGER_AUTO
in file Integer.php, constant MATH_INTEGER_AUTO
MATH_INTEGER_BCMATH
in file Integer.php, constant MATH_INTEGER_BCMATH
MATH_INTEGER_GMP
in file Integer.php, constant MATH_INTEGER_GMP
MATH_INTEGER_STANDARD
in file Integer.php, constant MATH_INTEGER_STANDARD
mod
in file IntegerOp.php, method Math_IntegerOp::mod()
    Calculate the modulus of $i1 and $i2: $i1 % $i2
mul
in file IntegerOp.php, method Math_IntegerOp::mul()
    Multiply two Math_Integer objects: $i1 * $i2
top

n

negate
in file IntegerOp.php, method Math_IntegerOp::negate()
    Returns the negative of a Math_Integer number: -1 * $i1
top

p

pow
in file IntegerOp.php, method Math_IntegerOp::pow()
    Raise $i1 to the $i2 exponent: $i1^$i2
top

s

sign
in file IntegerOp.php, method Math_IntegerOp::sign()
    Returns the sign of a Math_Integer number
sqrt
in file IntegerOp.php, method Math_IntegerOp::sqrt()
    Returns the (integer) square root of a Math_Integer number
sub
in file IntegerOp.php, method Math_IntegerOp::sub()
    Substract two Math_Integer objects: $i1 - $i2
top

Documentation generated on Mon, 11 Mar 2019 15:39:15 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.