Overview

Namespaces

  • chippyash
    • Type
      • Exceptions
      • Interfaces
      • Number
        • Complex
        • Rational
      • String

Interfaces

  • ComplexTypeInterface
  • GMPInterface
  • NumericTypeInterface
  • RationalTypeInterface
  • TypeInterface
  • Overview
  • Namespace
  • Class
  • Tree

Interface GMPInterface

Interface for chippyash\Type GMP types

Direct known implementers

chippyash\Type\Number\Complex\GMPComplexType, chippyash\Type\Number\GMPIntType, chippyash\Type\Number\Rational\GMPRationalType
Namespace: chippyash\Type\Interfaces
Located at Interfaces/GMPInterface.php
Methods summary
public GMP|resource
# gmp( )

Return the value of number as a gmp resource, object or array May return an array of gmp resource/object

Return the value of number as a gmp resource, object or array May return an array of gmp resource/object

Returns

GMP|resource
resource|GMP|array
public chippyash\Type\Number\GMPIntType
# asGMPIntType( )

Return number as GMPIntType number. Will return floor(n/d)

Return number as GMPIntType number. Will return floor(n/d)

Returns

chippyash\Type\Number\GMPIntType
\chippyash\Type\Number\GMPIntType
public chippyash\Type\Number\Complex\GMPComplexType
# asGMPComplex( )

Return the number as a GMPComplex number i.e. n+0i

Return the number as a GMPComplex number i.e. n+0i

Returns

chippyash\Type\Number\Complex\GMPComplexType
\chippyash\Type\Number\Complex\GMPComplexType
public chippyash\Type\Number\Rational\GMPRationalType
# asGMPRational( )

Return number as GMPRational number. NB, numerator and denominator will be caste as GMPIntTypes

Return number as GMPRational number. NB, numerator and denominator will be caste as GMPIntTypes

Returns

chippyash\Type\Number\Rational\GMPRationalType
\chippyash\Type\Number\Rational\GMPRationalType
Chippyash Strong Types API documentation generated by ApiGen 2.8.0