Skip to main content
Version: Next

abs

abs ( number : number ) : number

ParameterTypeDescription
numbernumberNumber for which to return the absolute value
ResultnumberAbsolute 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