ZX BASIC:ABS

From BorielWiki

Jump to: navigation, search

[edit] ABS

Returns the absolute value of the given argument. Argument must be a numeric expression. Returned value has the same type as the input argument.

Example:

REM ABSOLUTE value
PRINT "Absolute value of a is "; ABS(a)

[edit] Remarks

  • This function is 100% Sinclair BASIC Compatible
Personal tools