Builtin

maths.abs

maths.abs{a:float, b:float}

A relation generator. The absolute function.

Examples

negative
import("maths")
print(maths.abs(a:=-42.0))
┌───────┐
│ b     │
├───────┤
│ 42.00 │
└───────┘
positive
import("maths")
print(maths.abs(a:=42.0))
┌───────┐
│ b     │
├───────┤
│ 42.00 │
└───────┘