abs
abs* ( number : number ) : number
Parameter | Type | Description | |
---|---|---|---|
number | number | → | Number for which to return the absolute value |
Result | number | ← | Absolute value of number |
Description
abs
returns the absolute (unsigned, positive) value of number. If number is negative, it is returned as positive. If number is positive, it is returned unchanged.
Example
var vlVector : number
vlVector = abs(-10.3) //10.3