Class GMPRationalType
A rational number (i.e a fraction) This is the GMP type.
- chippyash\Type\AbstractType implements chippyash\Type\Interfaces\TypeInterface
- chippyash\Type\AbstractMultiValueType
- chippyash\Type\Number\Rational\AbstractRationalType implements chippyash\Type\Interfaces\RationalTypeInterface, chippyash\Type\Interfaces\NumericTypeInterface
- chippyash\Type\Number\Rational\GMPRationalType implements chippyash\Type\Interfaces\GMPInterface
public
|
#
__construct(
Construct new GMP rational |
public
integer|float
|
|
public
array
|
|
public
|
|
public
|
|
public
|
#
asGMPRational( )
Return number as GMPRational number. NB, numerator and denominator will be caste as IntTypes |
public
|
#
asRational( )
Return number as native Rational number. NB, numerator and denominator will be caste as IntTypes |
__toString(),
abs(),
asComplex(),
asFloatType(),
asIntType(),
denominator(),
getAsNativeType(),
isInteger(),
negate(),
numerator()
|
__clone(),
__invoke(),
set()
|