Basic computer language commands

Basic computer programming language

ABS Function

Purpose:

To return the absolute value of the expression n.

Syntax:

ABS(n)

Comments:

n must be a numeric expression.

Examples:

PRINT ABS(7*(-5))
 35

Prints 35 as the result of the action.

BASIC commands Main Menu

Index