I need to check if a variable I have is of the data type double. This is what I tried:
double
try { double price = Convert.ToDouble(txtPrice.Text); } c
You can use double.TryParse() it will return false if it couldn't create a double.
double.TryParse()
false