string.Format
double.ToString(string format)
double d = 133.2; Int32 num1 = Convert.ToInt32(Math.Truncate(d)); //Or as below Int64 num2 = Convert.ToInt64(Math.Truncate(d));
int val = Convert.toInt32(inputValue)
double d = 133.2; d = Math.Round(d); // d will hold 133
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)