Forum Discussion
ThomasUmphres
10 months agoCommunity Member
Javascript to Return a Number Variable to Show Exactly 3 Decimals
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.0...
WaltHamilton
10 months agoSuper Hero
You can return it to a numeric variable for internal calculations, but for display you have to return it to a text variable, or trailing 0s will be dropped.