I feel a little silly about not being able to figure this out...

I'm using CF 4.5.1 SP2.

I have a list of numbers: 7, 10, 203, 8, 26, etc.

I want the single digit numbers to display as two digits (07, 08, etc.).
All other numbers should just display as they are (10, 203, 26, etc.).

I've tried NumberFormat(mynumber, "00"), but then I get an error if there's
a three digit number.

I've tried NumberFormat(mynumber, "999"), but that doesn't display the
single digits as two digits.

I've tried NumberFormat(mynumber, "900"), but that displays the single
digits with two leading zeros.

I've tried other, similar combinations as well - all with no success.

Any ideas?

Thanks,

Evan

--
-=-=-=-=-=-=-=-=-=-
Evan Lavidor
Circle.com Boston
Tel: 617-585-3107
Fax: 617-585-3091
-=-=-=-=-=-=-=-=-=-


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to