❔ Truncate
how do I Truncate a float to an int, I tried this
and it says
I really need to know how to truncate now
and it says
I really need to know how to truncate now
/close Convert.ToInt32()var maxGap = 4 + Convert.ToInt32(player.position.x/500);var maxGap = 4 + Convert.ToInt32(decimal.Truncate(player.position.x/500));var maxGap = 4 + decimal.ToInt32(player.position.x / 500);