Can I change the value that contains multiple comma-behind values (like 2.6449999999999996) so that it has only 2 values behind the comma (like 2.64)
I thought leaving this kind of value would take too long, but I need a fairly detailed value.
2.6449999999999996
2.64
I've used the "system expression round () & int ()" but that just converts the values to the whole value.
For rounding decimals, try this. If you want a different amount of decimals to round to, change the number of zeroes in the 100s. The number of zeroes is the number of decimal places it will round to.
round(INSERTVARIABLEHERE*100)/100
left("2.6449999999999996", 4)
Develop games in your browser. Powerful, performant & highly capable.
THe problem with this is as soon as you get to the tens digit, the last decimal digit doesnt display.
For rounding decimals, try this. If you want a different amount of decimals to round to, change the number of zeroes in the 100s. The number of zeroes is the number of decimal places it will round to. round(INSERTVARIABLEHERE*100)/100
Thanks ^-^ . it worked