Copy link to clipboard
Copied
How do you round a number to two decimal places?
numberformat()
Copy link to clipboard
Copied
will output 12.36
Copy link to clipboard
Copied
numberformat()
Copy link to clipboard
Copied
Hi
Try this.Am assuming variable name as 'price'
#NumberFormat(price,'_____.__')#
or
#NumberFormat(price, "00.00")#
Copy link to clipboard
Copied
Copy link to clipboard
Copied
If only there was a big online listing of all the ColdFusion Display and Formatting Functions.
Copy link to clipboard
Copied
Why? I mean... no-one would ever use it.
Apparently.
It's like you're suggesting people RTFM (Read The FREELY-AVAILABLE Manual ;-). It won't catch on.
I think the big problem here is that things are so difficult to find stuff on the Web. So how would people be able to find this freely-available manual? If only there was some sort of engine people could use to search for stuff. Then they could JFGI (Just Find Good Information).
Cough.
--
Adam
Copy link to clipboard
Copied
If only there was some sort of engine people could use to search for stuff.
This is a ridiculous concept and will never catch on.