I want to find whether string has exponential format or not. Currently i am checking like below.
var s = "1.23E+04";
var hasExponential = s.Contains("E");
But i know this is not the proper way. So can anyone please guide proper and fastest way to achieve my requirement?
If you also want to make sure it really is a number, not just a string with an 'E' in it, maybe a function like this can be helpful. The logic remains simple.