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): TRationalRepresents 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: numberthe numerator of the rational number.denominatorType: DenominatorTypethe denominator type of the rational number.doubleValue: numberthe closest JavaScript number. If not supplied an approximation is calculated.tick: Trendtrend direction since the previous disseminated value for the field that was different than the current value.trendOnDay: Trendtrend direction since the previous day's value for the field.trendOnPrevious: Trendtrend direction since the previous disseminated value for the field.TRationaltrendToString(trend: Trend): stringUtility to convert trend into a friendly single-character representation.
stringtoString(): stringFormat a string showing the value and trending information.
stringtoJSON(): anyConvert to an object that JSON.stringify() can handle.
anytrendingToString(): stringFormat a string showing trending information.
stringvalueOf(): numberReturns the doubleValue.
numberreadonly trends: anyreadonly numerator: numberThe numerator of the rational number.
readonly denominatorType: DenominatorTypeThe type of the denominator of the rational number.
readonly doubleValue: number = ...The closest JavaScript number (if not supplied an approximation is calculated).