add math::abs function

This commit is contained in:
Heki 2023-05-20 13:16:24 +00:00 committed by GitHub
parent 6d90b0a294
commit bf716b2e87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,6 +78,8 @@ pub fn builtin_function(identifier: &str) -> Option<Function> {
"math::cbrt" => simple_math!(cbrt),
// Hypotenuse
"math::hypot" => simple_math!(hypot, 2),
// Absolute
"math::abs" => simple_math!(abs),
// Rounding
"floor" => simple_math!(floor),
"round" => simple_math!(round),