Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FloatType

Hierarchy

  • FloatReturn
    • FloatType

Index

Properties

mpfr_t: number = 0
precisionBits: number = -1
radix: number = -1
rndMode: number = -1
type: string = 'float'

Accessors

Methods

  • Returns the inverse hyperbolic cosine

    Returns FloatType

  • Returns the sum of this number and the given one.

    Parameters

    • val: AllTypes

    Returns FloatType

  • Calculate the value of the Airy function Ai on x

    Returns FloatType

  • Returns the inverse hyperbolic sine

    Returns FloatType

  • Returns the inverse hyperbolic tangent

    Returns FloatType

  • Rounds to the next higher or equal representable integer

    Returns FloatType

  • Returns the hyperbolic cotangent

    Returns FloatType

  • Calculate the value of the Digamma (sometimes also called Psi) function

    Returns FloatType

  • Returns the result of the division of this number by the given one.

    Parameters

    • val: AllTypes

    Returns FloatType

  • Calculate the value of the error function

    Returns FloatType

  • Calculate the value of the complementary error function

    Returns FloatType

  • Returns 10 to the power of current number (10^x)

    Returns FloatType

  • Returns 2 to the power of current number (2^x)

    Returns FloatType

  • exponent(): number
  • Returns the exponent of x, assuming that x is a non-zero ordinary number and the significand is considered in [1/2, 1).

    Returns number

  • Rounds to the next lower or equal representable integer

    Returns FloatType

  • Calculate the value of x - ny, where n is the integer quotient of x divided by y; n is rounded toward zero

    Parameters

    Returns FloatType

  • Calculate the value of the Gamma function.

    Returns FloatType

  • greaterOrEqual(val: AllTypes): boolean
  • Returns true if the current number is greater than or equal to the provided number

    Parameters

    • val: AllTypes

    Returns boolean

  • greaterThan(val: AllTypes): boolean
  • Returns true if the current number is greater than the provided number

    Parameters

    • val: AllTypes

    Returns boolean

  • Returns the reciprocal square root.

    Returns FloatType

  • isEqual(val: AllTypes): boolean
  • Returns true if the current number is equal to the provided number

    Parameters

    • val: AllTypes

    Returns boolean

  • isInfinite(): boolean
  • Returns true if the number is an infinity

    Returns boolean

  • isInteger(): boolean
  • Returns true if the number is an integer

    Returns boolean

  • isNaN(): boolean
  • Returns true if the number is NaN

    Returns boolean

  • isNumber(): boolean
  • Return true if the number is an ordinary number (i.e., neither NaN nor an infinity)

    Returns boolean

  • isRegular(): boolean
  • Returns true if the number is a regular number (i.e., neither NaN, nor an infinity nor zero)

    Returns boolean

  • isZero(): boolean
  • Returns true if the number is zero

    Returns boolean

  • Calculate the value of the first kind Bessel function of order 0

    Returns FloatType

  • Calculate the value of the first kind Bessel function of order 1

    Returns FloatType

  • Calculate the value of the first kind Bessel function of order n

    Parameters

    • n: number

    Returns FloatType

  • lessOrEqual(val: AllTypes): boolean
  • Returns true if the current number is less than or equal to the provided number

    Parameters

    • val: AllTypes

    Returns boolean

  • lessThan(val: AllTypes): boolean
  • Returns true if the current number is less than the provided number

    Parameters

    • val: AllTypes

    Returns boolean

  • Calculate the real part of the dilogarithm (the integral of -log(1-t)/t from 0 to op)

    Returns FloatType

  • Calculate the value of the logarithm of the absolute value of the Gamma function

    Returns FloatType

  • Returns the product of this number and the given one.

    Parameters

    • val: AllTypes

    Returns FloatType

  • Returns the number with inverted sign.

    Returns FloatType

  • Return next value towards +∞

    Returns FloatType

  • Return next value towards -∞

    Returns FloatType

  • Returns the n-th root.

    Parameters

    • nth: number

    Returns FloatType

  • Returns this number exponentiated to the given value.

    Parameters

    Returns FloatType

  • Calculate the value of x - ny, where n is the integer quotient of x divided by y; n is rounded to the nearest integer (ties rounded to even)

    Parameters

    Returns FloatType

  • Rounds to the nearest representable integer, rounding halfway cases away from zero

    Returns FloatType

  • Rounds to the nearest representable integer, rounding halfway cases with the even-rounding rule

    Returns FloatType

  • Round to precision

    Parameters

    • prec: number

    Returns FloatType

  • sign(): 0 | 1 | -1
  • Returns the sign of the current value (-1 or 0 or 1)

    Returns 0 | 1 | -1

  • Returns the difference of this number and the given one.

    Parameters

    • val: AllTypes

    Returns FloatType

  • toFixed(digits?: number, radix?: number): string
  • Formats the number using fixed-point notation

    Parameters

    • digits: number = 0
    • Optional radix: number

    Returns string

  • toNumber(): number
  • Converts current value into a JavaScript number

    Returns number

  • Converts the number to a rational number

    Returns RationalType

  • toString(radix?: number): string
  • Converts the number to string

    Parameters

    • Optional radix: number

    Returns string

  • Rounds to the next representable integer toward zero

    Returns FloatType

  • Calculate the value of the second kind Bessel function of order 0

    Returns FloatType

  • Calculate the value of the second kind Bessel function of order 1

    Returns FloatType

  • Calculate the value of the second kind Bessel function of order n

    Parameters

    • n: number

    Returns FloatType

  • Calculate the value of the Riemann Zeta function

    Returns FloatType

Generated using TypeDoc