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
Why dont you try something like this -
double doubleVar; if( typeof(doubleVar) == double ) { printf("doubleVar is of type double!"); }
This can easily check if the variable is of a type double .