Opc.Ua.Server.AggregateCalculator.CastToDouble C# (CSharp) Method

CastToDouble() protected static method

Converts the value to a double for use in calculations (throws exceptions if conversion fails).
protected static CastToDouble ( DataValue value ) : double
value DataValue
return double
        protected static double CastToDouble(DataValue value)
        {
            return (double)TypeInfo.Cast(value.Value, value.WrappedValue.TypeInfo, BuiltInType.Double);
        }