mirror of
https://github.com/janet-lang/janet
synced 2024-11-25 01:37:19 +00:00
Added math/abs binding
This commit is contained in:
parent
eb9bd38256
commit
c6672e62ac
@ -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}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user