Increment the integer part of a number. Same as x=x+1 or x++
incrementValue(number)
returns numeric
Name | Type | Required | Default | Description |
---|---|---|---|---|
number | numeric | Yes |
incrementValue(7)
There is a difference between CFML engines. ACF will return the integer incremented removing the decimal part. Lucee will increment the integer part but return both.
incrementValue(7.5)