Music Lyrics A to Z - Submit article - Debt Consolidation - Wordpress Theme - Find jobs

PDA

View Full Version : number format conversion


kilo232003
Apr 13th 2007, 11:31 am
Is there a way in javascript to format numbers (ie. in the form ###,###.00) but still keeping them as decimals (As opposed to converting to strings to add the ","), so that arithmetic functions can be used on them?

Thanks

lbalance
Apr 13th 2007, 1:56 pm
you might want to make a hidden field to store the raw number and use the visible text field to show the formatted version.