Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    seems rather complicated... Problem with your code is the fact it does not allow for leading zero. stackoverflow.com/questions/2901102/… Commented Nov 8, 2016 at 13:16
  • Can you use javascript function : toLocaleString() number =1.03; aa =number.toLocaleString(); console.log(aa); Commented Nov 8, 2016 at 13:20
  • Please refer this link it will solve your problem. Commented Nov 8, 2016 at 13:24