MATH::ABS 1g 2023 laplante@plcb.ca GOWEB/MATH


title: “MATH::ABS Function” author: “Pierre Laplante laplante@plcb.ca” date: “2023” version: “1.0.0” section: “1g”

category: “GOWEB/MATH”

Name

math::abs returns the absolute value of the given parameter.

Synopsis

math::abs(parameter)
abs(parameter)

Description

The math::abs function returns the absolute value of the given parameter.

If multiple parameters are provided, the function returns an array containing the absolute values of each parameter.

Examples

res={{
    abs(5); ",";
    abs(5.1); ",";
    abs(-5); ",";
    abs(-5.1); ",";
    abs("5"); ",";
    abs("5.1"); ",";
    abs("-5"); ",";
    abs("-5.1");
}}.

return

res=5,5.1,5,5.1,5,5.1,5,5.1.

Author

Pierre Laplante laplante@plcb.ca

See also

Version