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 could also use .GetType() to return the type of the variable if you are unsure what is being returned if a method is being called to generate the number. See http://msdn.microsoft.com/en-us/library/58918ffs(v=vs.71).aspx for an example.