LoginLogin
Might make SBS readonly: thread

ABS

Root / Documentation / [.]

Created:
Calculates the absolute value of a number. # Syntax ```sbsyntax positive = ABS(number) ``` | Input | Description |[#] |`number`| Number to make positive| | Output | Description |[#] |`positive`| Absolute value of number| Calculates the absolute value of `number`. This converts a negative number into a positive number, and leaves positive numbers and zero unchanged. # Examples ```sb PRINT ABS(-5) ' Prints 5 ``` ```sb PRINT ABS(63) ' Prints 63 ``` # Errors | Action | Error|[#] | Less than one argument is specified | Syntax error | | More than one argument is specified | Missing operand | | A string was passed for any argument | Type Mismatch | # See Also - sbs:page/docs-ptc-function{Function overview}

No posts yet (will you be the first?)