Method RoundToInt
RoundToInt(Single)
Returns the nearest rounded integer
Declaration
public static int RoundToInt(float f)
Parameters
Type | Name | Description |
---|---|---|
System.Single | f | The value to be rounded to the nearest integer |
Returns
Type | Description |
---|---|
System.Int32 | Returns f rounded to the nearest integer |