From bf716b2e872a2743bba2bc674a843289efc7212e Mon Sep 17 00:00:00 2001 From: Heki <75025611+LinuxHeki@users.noreply.github.com> Date: Sat, 20 May 2023 13:16:24 +0000 Subject: [PATCH] add math::abs function --- src/function/builtin.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/function/builtin.rs b/src/function/builtin.rs index 350a810..95aecda 100644 --- a/src/function/builtin.rs +++ b/src/function/builtin.rs @@ -78,6 +78,8 @@ pub fn builtin_function(identifier: &str) -> Option { "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),