abs

Get the smallest integer that is greater than or equal to the argument

Parameters:

No. Type Comments
1 Any numeric type Value to convert to absolute value

Returns:

Numeric type - Absolute value in the same datatype as input

Usages:

  • abs( v : short ) : short
  • abs( v : int ) : int
  • abs( v : long ) : long
  • abs( v : double ) : double