Reference · Rolls and exact odds
MathFunctiontype
The functions a formula may call. round rounds a half up, as JavaScript's Math.round does.
Import it
import type { MathFunction } from "@johnmorrisdotca/korokoro";
Definition
type MathFunction = "floor" | "ceil" | "round" | "abs" | "max" | "min";
Examples
import type { MathFunction } from "@johnmorrisdotca/korokoro";
const value: MathFunction = "floor";
console.log(value);floorWhat it prints (run when this page was built)