Skip to main content

Module math

Module math 

Source
Expand description

Port of src/ast/math/math.ts.

Enums§

NumOrFraction
a number or a fraction [numerator, denominator]

Functions§

compute
compute an arithmetic operation. fractions are returned when shorter than the decimal value
gcd
greatest common divisor
rem
the number of decimals of the non integer values, 0 when they are all integers
simplify
simplify a fraction