new Fraction(numerator, denominator)
A rational number.
Parameters:
Name | Type | Description |
---|---|---|
numerator |
number | |
denominator |
number |
Properties:
Name | Type | Description |
---|---|---|
numerator |
number | |
denominator |
number |
Methods
reduced() → {Numbas.math.Fraction}
Returns a copy of this fraction reduced to lowest terms.
Returns:
Type | Description |
---|---|
Numbas.math.Fraction |