Nothing after the dot (1.051 = 1) for float

Hello,
I want remove number after the dot in a float like (it’s an example) 1.021 to get 1.
How can i do that?

You can do that.

int num = Mathf.FloorToInt(1.021f);