Javascript toFixed localized?

Posted by Marco Demaio on Stack Overflow See other posts from Stack Overflow or by Marco Demaio
Published on 2010-05-19T13:07:22Z Indexed on 2010/05/19 13:10 UTC
Read the original article Hit count: 206

Filed under:
|

Do you know if toFixed is a localized function?

I mean will this:

var n = 100.67287;
alert(n.toFixed(2));

show "100.67" on english US OS/browsers and "100,67" (with comma) on Italian OS/browsers (Italian or any other local system that uses comma as decimal separator).

Thanks!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about localization