Code and unicorns
Code and unicorns
Home
Posts
Projects
Writing
Contact
About me
Light
Dark
Automatic
format
Format € money snippet
The following function transforms the inputed numeric value for example var sum = 50.3 sum.formatMoney(2,’,’ , ‘.’) + “€” and the output of this function is then 50,30€. As you notice it is quite simple to change it in $ or anything you desire.
Matjaz Trcek
Last updated on Jan 9, 2022
1 min read
The Code
Cite
×