Here are the decimal:
How can I strip off the 2nd decimal place to make those decimal to be:
I have the following code to return bool if it is more than one decimal place.
But, how can I strip off and return the one decimal place number in VC#?
public bool CheckDecimal(string number)
bool isValid = true;
if (number.Substring(number.Length - 1, 1) != ".")
isValid = false;
Open in new window
Credit to the original poster...