Retain trailing zeros when using .toFixed
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2024 08:58 AM
I want to show a percentage value with two decimal places. Using toFixed(2);
Although working, it truncates the trailing zero (e.g. 93.10% becomes 93.1%).
Is there any way to retain the truncated zero?
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2024 03:26 AM
Hi,
trying to replicate it but it works fine for me.
here is the script i ran
Result
-Anurag