DecrementValue

Description

Decrements the integer part of a number.

Returns

Integer part of number, decremented by one.

Category

Mathematical functions

Function syntax

DecrementValue(number)

See also

IncrementValue

Parameters

Parameter

Description

number

Number to decrement

Example

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

Sign in to your account