Rounds to a number of decimals and writes it without trailing zeros or floating point noise, so 0.30000000000000004 becomes 0.3 and 1.50 becomes 1.5.
0.30000000000000004
0.3
1.50
1.5
Number to write.
Decimals to keep.
Rounds to a number of decimals and writes it without trailing zeros or floating point noise, so
0.30000000000000004becomes0.3and1.50becomes1.5.