Forum

How do I round a value to two decimal places?

How do I do it you guys? I don’t want it to be an integer, just to maybe two or three decimal places.

see patch… no text …

rounding_decimals.v4p (8.6 kB)

I did a plugin for that. You can download it here

i came accross this example because i was searching for the same thing, then i remembered the expr node and made my version of this…

round decimals expr.v4p (3.8 kB)

formatvalue is also a good node

rounding.v4p (2.6 kB)

formatvalue maybe also good

rounding.v4p (2.6 kB)

yeah nice didn’t know that!!