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