I have done this with string values like 65.34, 65,45, 34.45
Everything returns True ...
public void test()
{
string value = "65" 0r "65.0" 0r "1,234.54";
decimal number;
if (Decimal.TryParse(value, out number))
MessageBox.Show(value);
else
MessageBox.Show("Unable to parse '{0}'.", value);
}
This all returns its a Decimal ..
If I type "0.65" .. I need to show error and it i type "65" it has to be exectued.