ZX BASIC:ABS

From BorielWiki
Jump to: navigation, search
Itinerary: Reserved Identifiers
Up: Language Reference
Previous Next
WHILE WHILE ACS ACS



Contents

ABS

Syntax

 
ABS(numericExpression)

Description

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

Examples

 
REM 'Absolute value
LET a = -1
PRINT "Absolute value of a is "; ABS(a)
REM 'Will print 1

Remarks

  • This function is 100% Sinclair BASIC Compatible
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox
Translate
Google AdSense