Absolute
Module Info:
moduleType: "internal",
moduleName: "absulute"
Description
The absolute
function receives a number and returns its absolute value.
Inputs
Name | Type | Required |
---|---|---|
input | number | ✔ |
Outputs
Name | Type |
---|---|
result | number |
errorMessage | string |
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" |