Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

Latest commit

 

History

History
48 lines (42 loc) · 1.33 KB

ABS.org

File metadata and controls

48 lines (42 loc) · 1.33 KB

Top | Up (Math) | < Previous (PAGE NAME) | Next (SGN) >

ABS

Returns the absolute value of a number (basically, this means removing the - sign).
ABS(NaN) is NaN. ABS(-2147483648) is -2147483648 due to the size of the integer space.

Syntax

ABS number OUT absolute_value

Examples

PRINT ABS(10) '10
PRINT ABS(-10) '10
PRINT ABS(-1.5) '1.5