Rational

A number type allowing for higher precision when used to represent a rational number with a specified denominator.

Extended by

Constructor

  • constructor

    Represents a number that can be expressed in the form numerator / denominator. Supports a fixed set of denominator values.
    • new Rational(numerator: number, denominatorType: DenominatorType, doubleValue: number = numerator / denominatorValue[denominatorType]): Rational

      Represents a number that can be expressed in the form numerator / denominator. Supports a fixed set of denominator values.

      Returns Rational

Methods

Properties

Also in this Section

Functions

Interfaces