Module pico8lib.rational
Rational Numbers (Fractions)
Local Functions
| nthroot (n, x) | Return the xth root of n much better alternatives in math.p8 |
Class Rational
| rational:__call (t, n[, d=1]) | Constructor |
| rational.zero | Rational Zero |
| rational.one | Rational One |
Local Functions
- nthroot (n, x)
-
Return the xth root of n
much better alternatives in math.p8
Parameters:
- n The number to take the root of
- x The root value
Returns:
-
The
xth root ofn
Class Rational
Rational Number