Skip to main content

Truncating Numbers in Coldfusion

To trunc numbers without rounding in coldfusion simply use:

fix(myNumber)

ex: <cfoutput>#fix(34.731)#</cfoutput>
Result: 34

Comments