I have simple function checking if string is number or not. Suddenly I discovered that it don't work with "0" or "00". Tell me why, please! And how to make it works?
string num = "00";
Int32.TryParse(num, out int n);
if (n > 0) return true; // It works nice on any digits except 0 and 00.
Also I tried:
double.TryParse(num, out double n);
But don't work too.
So I went in such way:
if ((n > 0) | (num == "0") | (num == "00")) return true;