public override ISqlValue Subtract(ISqlValue a, ISqlValue b)
        {
            if (!(a is SqlNumber) ||
                !(b is SqlNumber))
            {
                return(SqlNull.Value);
            }

            var x = (SqlNumber)a;
            var y = (SqlNumber)b;

            return(SqlMath.Subtract(x, y, Precision));
        }
Beispiel #2
0
 public static SqlNumber operator -(SqlNumber a, SqlNumber b)
 {
     return(SqlMath.Subtract(a, b));
 }