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