abs
Description
Absolute-value function. The absolute value of a number is the number without its sign.
Categories
Related
Syntax
Abs(number)
Attributes
| Attribute | Description | Required | Default |
|---|---|---|---|
| number | A number |
Returns
The
absolute value of a number.
Example
<h3>Abs Example</h3> The absolute value of the following numbers: 1,3,-4,-3.2,6 is <cfoutput> #Abs(1)#,#Abs(3)#,#Abs(-4)#,#Abs(-3.2)#,#Abs(6)# </cfoutput> The absolute value of a number is the number without its sign.</p>