Re: Oh, that damn Numberformat!!
DecimalFormat() ;-) Bryan Stevenson VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, April 29, 2002 1:54 PM Subject: Oh, that damn Numberformat!! I hate NumberFormat(). Can someone please help? I want my numbers to output like this: 123 = 123.00 123.1 = 123.10 123.00 = 123.00 0 = 0.00 What would be the proper mask for this? I've tried 999.00, but then 0 becomes .00. I've tried 990.00, but then 12 becomes 012.00. Arrggg!! BTW, CFMX is cool. __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Oh, that damn Numberformat!!
I hate NumberFormat(). Can someone please help? I want my numbers to output like this: 123 = 123.00 123.1 = 123.10 123.00 = 123.00 0 = 0.00 What would be the proper mask for this? I've tried 999.00, but then 0 becomes .00. I've tried 990.00, but then 12 becomes 012.00. How about DecimalFormat? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Oh, that damn Numberformat!!
If you are always wanting two decimal places, try #DecimalFormat(number)# Paul Giesenhagen QuillDesign http://www.quilldesign.com SiteDirector v2.0 - Commerce Builder I hate NumberFormat(). Can someone please help? I want my numbers to output like this: 123 = 123.00 123.1 = 123.10 123.00 = 123.00 0 = 0.00 What would be the proper mask for this? I've tried 999.00, but then 0 becomes .00. I've tried 990.00, but then 12 becomes 012.00. Arrggg!! BTW, CFMX is cool. __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Oh, that damn Numberformat!!
I have had similar issues when my locale was all messed up (a mixture of windows and cf.) Try using LSNumberFormat - see what results you get. Neil __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Oh, that damn Numberformat!!
maybe: .00 #numberformat(#number#,00)# -- Sam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 1:55 PM To: CF-Talk Subject: Oh, that damn Numberformat!! I hate NumberFormat(). Can someone please help? I want my numbers to output like this: 123 = 123.00 123.1 = 123.10 123.00 = 123.00 0 = 0.00 What would be the proper mask for this? I've tried 999.00, but then 0 becomes .00. I've tried 990.00, but then 12 becomes 012.00. Arrggg!! BTW, CFMX is cool. __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists