- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2021 05:58 PM
I want to add a comma to the Decimal type amount in a server-side script (EmailScript) and display it in the body of the email.
<Example: Amount: 5000 ⇒ 5,000>
As shown below, I have described a script that adds commas to Decimal type amounts, but commas are not added.
I want you to tell me the solution.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2021 09:39 PM
Hi,
Please check below link, you can find different solutions proposed for this type of conversion.:
https://www.hashbangcode.com/article/format-numbers-commas-javascript
Thanks,
Anil Lande
Thanks
Anil Lande

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2021 09:39 PM
Hi,
Please check below link, you can find different solutions proposed for this type of conversion.:
https://www.hashbangcode.com/article/format-numbers-commas-javascript
Thanks,
Anil Lande
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2021 06:09 PM
Hello, Anil Lande.
Thank you for presenting the solution. Let's verify whether the amount of money can be added with a comma by the measures you received.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2021 12:11 AM
Hello, Anil Lande.
By the method you taught me, I can now display the amount with a comma.
Thank you very much!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2021 06:14 PM
I would like someone to tell me more.
In server-side script (EmailScript), the following method to put a comma in the amount was not available, but it can be used in Client script.
What is the difference between the two?
<Method with comma>
toLocaleString (undefined, {
maximumFractionDigits: 20
})