Exemple #1
0
        public SqlNumber Pow(SqlNumber exp)
        {
            if (State == NumericState.None)
            {
                return(new SqlNumber(BigMath.Pow(innerValue, exp.innerValue)));
            }

            return(this);
        }
Exemple #2
0
        public static SqlNumber Pow(SqlNumber number, SqlNumber exp)
        {
            if (SqlNumber.IsNumber(number))
            {
                var result = BigMath.Pow(number.innerValue, exp.innerValue);
                return(new SqlNumber(result));
            }

            return(number);
        }