Javascript to Return a Number Variable to Show Exactly 3 Decimals

Feb 21, 2024

I have two variables called "AGCFreq" and "FreqRandom". They need to be exactly 3 decimal places. Even if "AGCFreq" = 60.020, it needs to display as 60.020. A randomized number between 0.022 and 0.045 will then be added to the 60.000. This number will then go through a different calculation script. 

The problem is no matter how I write this script, it's only showing up as 2 decimal places.

Does anyone have any tips on how to display this correctly?

4 Replies