What would the best solution be to validate for an integer amount.
I am thinking the following.
double value = Double.Parse(txtCubes.Text);
double wholeValue = Math.Round(value);
Console.WriteLine("You added " + wholeValue + " blocks of ice");
Is there a better why of making sure an integer value is entered?
You can use compare validator for int validation