Skip to main content

Absolute

Module Info:

moduleType: "internal",
moduleName: "absulute"

Description

The absolute function receives a number and returns its absolute value.

Inputs

NameTypeRequired
inputnumber

Outputs

NameType
resultnumber
errorMessagestring

The errorMessage property will only be defined if the given input is not a number.

Examples

Inputs Outputs
input result errorMessage
45.3 45.3 undefined
-45.3 45.3 undefined
"foo" undefined "One of the arguments provided was not a number"