Added math/abs binding

This commit is contained in:
J.-F. Cap committed 2019-02-10 14:06:10 +01:00
1 parent eb9bd38256
commit c6672e62ac
1 file changed
+5
+5
View File
@@ -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}
};