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);
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);