Name
DecimalFormat
Synopsis
DecimalFormat(number
)
Returns number
as a string formatted to
two decimal places with thousands separators. Examples:
<CFOUTPUT> 1: #DecimalFormat(1)#<BR> 10: #DecimalFormat(10)#<BR> 100: #DecimalFormat(100)#<BR> 1000: #DecimalFormat(1000)#<BR> 10000: #DecimalFormat(10000)#<BR> 100000: #DecimalFormat(100000)#<BR> 1000000: #DecimalFormat(1000000)#<BR> </CFOUTPUT>
Get Programming ColdFusion now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.