
here decimal is not a real decimal.. and I am doing calculation on the above number...so is their standard function that can manage and change these numbers into the standard US number... like 17777 so that my calculations will be fine..
5 réponses
Use the below scriot in the Mozilla browser.
var number = 123456.789;
// German uses comma as decimal separator and period for thousands
alert(number.toLocaleString("de-DE"));
alert(number.toLocaleString()); // Displays in U.S. English locale.