[Javascript] Number validation with digit grouping

Tobias Barlind tobias.barlind at infostruct.se
Mon Oct 21 05:26:58 CDT 2002


Does anyone have a good snippet that validates a string of numbers that
has digit grouping?

I.e "12,200.50"

isNaN returns true on this.

And I can't just simply remove all "," because I have to deal with
different languages having different decimal signs like "," instead of
"." :)

//B




More information about the Javascript mailing list