Search
 
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
Name
2+1 =