DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
how to format money as currency string
(12345.67).toFixed(2).replace(/d(?=(d{3})+.)/g, '$&,'); // 12,345.67
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#format
#money
#currency
#string
ADD COMMENT
Topic
COMMENT
Name
2+1 =
Submit