Decrements the integer part of a number. Same as x=x-1 or x–
decrementValue(number)
returns numeric
Name | Type | Required | Default | Description |
---|---|---|---|---|
number | numeric | Yes |
decrementValue(7)
There is a difference between CFML engines. ACF will return the integer decremented removing the decimal part, returns 6. Lucee will decrement the integer part but return both, returns 6.5.
decrementValue(7.5)