Math.Ceiling(val);
Math.Round(4.4); //Returns 4.0. Math.Round(4.5); //Returns 4.0. Math.Round(4.6); //Returns 5.0.
double x = 1234.7; int a; // Cast double to int. a = (int)x; //Result: 1234
int
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)