完善「Val_Double」方法的运算逻辑
This commit is contained in:
@@ -721,9 +721,9 @@ namespace Deedy.Testing
|
|||||||
{
|
{
|
||||||
if (rawValue is double tValue) return tValue;
|
if (rawValue is double tValue) return tValue;
|
||||||
string paramExp = rawValue?.ToString() ?? "0";
|
string paramExp = rawValue?.ToString() ?? "0";
|
||||||
object valueExp = paramExp.StartsWith('@') ? this.ParamGetter(paramExp, 0) : paramExp;
|
if (double.TryParse(paramExp, out double dValue)) return dValue;
|
||||||
|
object valueExp = this.ParamGetter(paramExp, 0);
|
||||||
if (valueExp is double pValue) return pValue;
|
if (valueExp is double pValue) return pValue;
|
||||||
if (double.TryParse(valueExp.ToString(), out double dValue)) return dValue;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user