string strNumberToRound = numberToRound.ToString(); int index = strNumberToRound.IndexOf("."); string dollarValue = (index > 0 ? strNumberToRound.Substring(0, index) : numberToRound.ToString()); decimal number1 = Convert.ToDecimal(dollarValue);
Math.Floor(numberToRound)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)