Reducing digit number on a float

multiply the value by 10, and assign the product to an integer which will drop off the decimal values, then divide the the integer as a float by 10, to shift the product back, and assign the quotient to a float. I’m assuming that you are using blueprints, so the multiplications and divisions are very straightforward. When your flip flopping between the float to integer, and integer back to float, the blueprints, will inject some conversion nodes for you.

Hope this helps

How do I reduce the digit number on a float?

For example: I pick a random float in range of 0.2 and 0.6. Engine picks 0.32421. I want to print it as 0.3.

How do I do that?

I thought that maybe there is a way like ‘clamp’ node but this works. Thank you

there is also a Round node where you can select the number of digits

That didn’t work. At least I couldn’t make it work.