DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+8 =
Submit