diff --git a/src/core/math.c b/src/core/math.c index 4dd0fd5b..3f4f285b 100644 --- a/src/core/math.c +++ b/src/core/math.c @@ -176,6 +176,11 @@ static const JanetReg math_cfuns[] = { JDOC("(math/pow a x)\n\n" "Return a to the power of x.") }, + { + "math/abs", janet_fabs, + JDOC("(math/abs x)\n\n" + "Return the absolute value of x.") + }, {NULL, NULL, NULL} };