Contents

Abs

Description

Absolute-value function. The absolute value of a number is the number without its sign. i.e. removes the sign if number is negative.

Category

Mathematical

Implemented

Usage Syntax

Abs(number)

Return Information

Return Type Return Description
number The absolute value of a number.

Arguments

Name Type Required Position Default Description
number number Yes 1 N/A A number

Example Usage

<h3>Abs Example</h3>
<p>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>
<p>The absolute value of a number is the number without its sign.</p>

category Categories: