1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-16 05:34:48 +00:00

Merge pull request #32 from jfcap/master

Added math/abs binding
This commit is contained in:
Calvin Rose 2019-02-10 11:57:28 -05:00 committed by GitHub
commit 291c13bafc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,6 +176,11 @@ static const JanetReg math_cfuns[] = {
JDOC("(math/pow a x)\n\n" JDOC("(math/pow a x)\n\n"
"Return a to the power of x.") "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} {NULL, NULL, NULL}
}; };