Anyway to round down decimal variables in logic calculation?

Anyway to round down decimal variables in logic calculation?

round it like normal: {{ round(NUMBER) }}
round it up: {{ roof(NUMBER) }}
round it down: {{ floor(NUMBER) }}

5 Likes

Yes I did see this earlier but what i was wondering is that the function rond up you can specify how many decimals you want to round up on. The same method does not work with floor(VALUE,n).

Is this a limitation of the function " floor()"?

this is indeed a limitation of the build in logic’s calculation card, though that is of course very easy to fix with regular calculus:
1 decimal: {{ floor(NUMBER * 10) / 10 }}
2 decimals: {{ floor(NUMBER * 100) / 100 }}
etc

It might be possible with the “better logic library” app with the floor(VALUE, n) way.