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>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy