Skip to main content

abs

abs ( number : number ) : number

ParameterTypeDescription
numbernumber->Number for which to return the absolute value
Resultnumber<-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