Hi @DataOfficer ,
To avoid having to enter the list of fields and define how many decimals should be used you can use the Text function and format it the way you want. Have a look at the example below:
var x1 = PI * 100;
Console(x1);
var x2 = Round(x1, 3);
Console(x2);
var x3 = Text(x2, "#.00");
Console(x3);
var x4 = Text(x2, "#");
Console(x4);
This will write to the console:
314.1592653589793
314.159
314.16
314
- Contains the original value (PI * 100)
- The result of rounding it to 3 decimals (it is still a number)
- Converting to a text indicating to format it using always ("0") 2 decimals (even when 0)
- Converting to a text using no decimals and eliminating leading/trailing zeros ("#")