public double GetDoubleValue()
{
var StrNumber = this.Raw;
try
{
if (StrNumber.EndsWith("f")) StrNumber = StrNumber.Substring(0, StrNumber.Length - 1);
//if (StrNumber.EndsWith("U")) StrNumber = StrNumber.Substring(0, StrNumber.Length - 1);
//Console.WriteLine("{0} : {1}", StrNumber, double.Parse(StrNumber, ParseCultureInfo));
if (Type != CTokenType.Float) throw (new Exception("Trying to get the integer value from a token that is not a number"));
return double.Parse(StrNumber, ParseCultureInfo);
}
catch (Exception Exception)
{
Console.Error.WriteLine(Exception.Message);
throw (new Exception(String.Format("Invalid double '{0}' : '{1}'", Raw, StrNumber)));
}
}