OpenBve.Interface.TryParseDoubleVb6 C# (CSharp) Method

TryParseDoubleVb6() static private method

static private TryParseDoubleVb6 ( string Expression, double &Value ) : bool
Expression string
Value double
return bool
		internal static bool TryParseDoubleVb6(string Expression, out double Value) {
			Expression = TrimInside(Expression);
			CultureInfo Culture = CultureInfo.InvariantCulture;
			for (int n = Expression.Length; n > 0; n--) {
				double a;
				if (double.TryParse(Expression.Substring(0, n), NumberStyles.Float, Culture, out a)) {
					Value = a;
					return true;
				}
			}
			Value = 0.0;
			return false;
		}
		internal static bool TryParseFloatVb6(string Expression, out float Value) {

Same methods

Interface::TryParseDoubleVb6 ( string Expression, double UnitFactors, double &Value ) : bool