Class FloatExtensions
A static class providing float extensions
public static class FloatExtensions
- Inheritance
-
objectFloatExtensions
Methods
RoundToInt(float)
Rounds the provided number away to zero and casts the result to an int
public static int RoundToInt(this float number)
Parameters
numberfloatThe number to round
Returns
- int
The rounded number as an integer