ABS()

ABS(V)

RETURNS THE ABSOLUTE VALUE OF V

  • Type: Function
  • Parameter: 1
  • Group: Mathematics

ACTION

The function ABS(V) returns the absolute value of V.

V can be a real or integer number.

SYNTAX: Result=ABS(V)

  • V = real or integer value.

USE

  • The function ABS() is used to calculate an absolute value.

ERROR

  • If V is not a correct expression.

EXAMPLE

print abs(-2.3)

print "Result = 2.3"

SEE ALSO

-