ExcelFormulaParser.Engine.ExcelUtilities.NumericExpressionEvaluator.OperandAsDouble C# (CSharp) Méthode

OperandAsDouble() public méthode

public OperandAsDouble ( object op ) : double?
op object
Résultat double?
        public double? OperandAsDouble(object op)
        {
            if (op is double || op is int)
            {
                return Convert.ToDouble(op);
            }
            if (op != null)
            {
                double output;
                if (double.TryParse(op.ToString(), out output))
                {
                    return output;
                }
            }
            return null;
        }