Fraction
Class Fraction
Fraction class.
static Method .difference (a: number|Fraction, b: number|Fraction): Fraction
Calculates the difference of two fractions a and b.
Name | Type | Default | Description | |
---|---|---|---|---|
a | number | Fraction | ||
b | number | Fraction |
static Method .fromDecimal (x: number, max: number): Fraction
Name | Type | Default | Description |
---|---|---|---|
x | number | ||
max | number | 20 |
static Method .product (a: number|Fraction, b: number|Fraction): Fraction
Calculates the product of two fractions a and b.
Name | Type | Default | Description | |
---|---|---|---|---|
a | number | Fraction | ||
b | number | Fraction |
static Method .quotient (a: number|Fraction, b: number|Fraction): Fraction
Calculates the quotient of two fractions a and b.
Name | Type | Default | Description | |
---|---|---|---|---|
a | number | Fraction | ||
b | number | Fraction |