Unable to convert 498705.833333333333333333333333 to the Javascript Number type because it will lead to precision loss. The maximum safe number of digits after the decimal point is 16.
How to reduce the fractional digits ".833333333333333333333333 " in OutSystems
Hi Omar,
To reduce the fractional digits of a decimal number in OutSystems, you can use the Round() function. The Round() function takes two arguments: the decimal number to be rounded and the number of decimal places to round to.
For example, to round the number 0.833333333333333333333333 to two decimal places, you could use the following code:
Round(0.833333333333333333333333, 2)
This would return the result 0.83, with only two decimal places.
You can also use the ToFixed() method in JavaScript to format a decimal number to a specific number of decimal places. For example:
var num = 0.833333333333333333333333;
num.toFixed(2);
This would return the result "0.83", with only two decimal places.