abs() Function

The abs() function returns the absolute (positive) portion of the integer number derived from the given numeric expression.

Syntax

abs(num.exp)

Parameter(s)

num.exp

Expression resulting in an integer number.

 

NOTE

If the expression is nonnumeric, 0 is assumed.

Example(s)

x = -1

y = abs(x)

print y

1

See Also

FlashBASIC C Functions Overview, int() Function, Numeric Expressions, Statements and Functions, ub070 User Exit