We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Retain trailing zeros when using .toFixed

MBarrott
Mega Sage

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

Hi, 

trying to replicate it but it works fine for me. 

here is the script i ran

AnuragTripathi_0-1725531923922.png

 

 

Result

 

AnuragTripathi_2-1725531967366.png

 

 

-Anurag