public static SqlNumber Abs(SqlNumber number) { if (SqlNumber.IsNumber(number)) { return(new SqlNumber(SqlNumber.NumericState.None, BigMath.Abs(number.innerValue))); } if (SqlNumber.IsNegativeInfinity(number)) { return(SqlNumber.PositiveInfinity); } return(number); }