Here I saw an example:
public static bool IsNumeric(object Expression) { double retNum; bool isNum = Double.TryParse(Convert.ToString(Expression), System.Globalization.NumberStyles.Any,System.Globalization.NumberFormatInfo.InvariantInfo, out retNum ); return isNum; } But using it I often get this error:
column "nan" does not exist
Those. NaN he considers number.
And about the decimal separator: this, as I understand it, depends on the locale settings, and somewhere this is a period, and somewhere else is a comma?
What is the guaranteed way to check if it is a number or not?