Fraction
The base class which all subsequent fraction classes extend. Not meant to be used directly.
Constructor
Properties
numerator (JSBI type)
denominator (JSBI type)
Methods
quotient
Performs floor division.
remainder
Gets the remainder after floor division.
invert
add
subtract
lessThan
equalTo
greaterThan
multiply
divide
toSignificant
Formats a fraction to the specified number of significant digits.
toFixed
Formats a fraction to the specified number of decimal places.
Last updated