0
 Number(val).toLocaleString("en-US")

this works fine in chrome and ie edge, but in ie 9 toLocaleString() fixes numbers to 2 precision.

for ex. 65565.656.toLocaleString("en-US"); -> 65,565.67

Nininea
  • 2,671
  • 6
  • 31
  • 57
  • 1
    There are several duplicates to this question. Check [here](http://stackoverflow.com/questions/13428678/inconsistent-behavior-of-tolocalestring-in-different-browser) or [there](http://stackoverflow.com/questions/16157762/tolocalestring-not-supported-in-all-browsers) –  Sep 24 '14 at 06:59
  • I have changed toLocaleString with custom formating, using regex @vlzvl thanks – Nininea Sep 26 '14 at 08:59

0 Answers0