Abs()
Abs() returns the absolute value of the integer passed. Syntax: integer = Abs( Integer )
Example:
dim a as integer a = -123 a = Abs(a) ' Result: 123 a = 123 a = Abs(a) ' Result: 123
en:abs
Abs() returns the absolute value of the integer passed. Syntax: integer = Abs( Integer )
Example:
dim a as integer a = -123 a = Abs(a) ' Result: 123 a = 123 a = Abs(a) ' Result: 123