Adobe ColdFusion 8

IncrementValue

Description

Adds one to an integer.

Returns

The integer part of number, incremented by one.

Category

Mathematical functions

Function syntax

IncrementValue(number)

See also

DecrementValue

Parameters

Parameter

Description

number

Number to increment

Example

<h3>IncrementValue Example</h3>
<p>Returns the integer part of a number incremented by one.
<p>IncrementValue(0): <cfoutput>#IncrementValue(0)#</cfoutput>
<p>IncrementValue("1"): <cfoutput>#IncrementValue("1")#</cfoutput>
<p>IncrementValue(123.35): <cfoutput>#IncrementValue(123.35)#</cfoutput>