Skip to main content
Paddy R 님이 #Data Management에 질문했습니다
 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개
  1. 2014년 1월 20일 오전 8:43
    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.