Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

tofixed currency in js

(12345.67).toFixed(2).replace(/d(?=(d{3})+.)/g, '$&,');  // 12,345.67
Source by ask.xiaolee.net #
 
PREVIOUS NEXT
Tagged: #tofixed #currency #js
ADD COMMENT
Topic
Name
2+8 =