Abs
From Xojo Documentation
Method
Returns the absolute value of a number.
Syntax
result = Abs(value)
Part | Type | Description |
---|---|---|
result | Double | The absolute value of value. |
value | Double | The number to convert to an absolute value. |
Notes
The Abs function returns the positive equivalent of the value specified.
Sample Code
These examples use the Abs function to return the absolute values of the numbers specified.
See Also
Sign function, Xojo.Math.Abs method.