[Solved] Decimal places

To get 0 decimal points:

trunc(Value)

To get 1 decimal point:

trunc(Value * 10) / 10

Two decimal points:

trunc(Value * 100) / 100

And so on :slight_smile:
The value is multiplied by a multiple of 10, so you “save” a number of decimals equal to the number of 0’s this multiple of 10 has, then the other decimals are deleted by the truncate function “trunc()”, finally you divide by the same multiple of 10 to set the “saved” decimals after the floating point again.

2 Likes