Skip to main content
 If a user locale is set to ‘nl_NL’, the number format in output text will be 1.777,7

 

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 answers
  1. Jan 20, 2014, 8:43 AM
    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.
0/9000