A number type allowing for higher precision when used to represent a rational number with a specified denominator and additional fields indicating the change direction across different periods.
new TRational(numerator: number, denominatorType: DenominatorType, doubleValue: number, tick: Trend, trendOnDay: Trend, trendOnPrevious: Trend): TRational
Represents a number that can be expressed in the form numerator / denominator, with additional fields indicating the change direction across different periods. Supports a fixed set of denominator values.
numerator: number
the numerator of the rational number.denominatorType: DenominatorType
the denominator type of the rational number.doubleValue: number
the closest JavaScript number. If not supplied an approximation is calculated.tick: Trend
trend direction since the previous disseminated value for the field that was different than the current value.trendOnDay: Trend
trend direction since the previous day's value for the field.trendOnPrevious: Trend
trend direction since the previous disseminated value for the field.TRational
trendToString(trend: Trend): string
Utility to convert trend into a friendly single-character representation.
string
toString(): string
Format a string showing the value and trending information.
string
toJSON(): any
any
trendingToString(): string
Format a string showing trending information.
string
valueOf(): number
Returns the doubleValue.
number
readonly trends: any
readonly numerator: number
readonly denominatorType: DenominatorType
readonly doubleValue: number