Beispiel #1
0
        public static void Function_RoundWithPrecision(double value, int precision, double expected)
        {
            var number = (SqlNumber)value;
            var result = SqlMath.Round(number, precision);

            var doubleResult = (double)result;

            Assert.Equal(expected, doubleResult);
        }
Beispiel #2
0
        public static void Function_Round(double value, double expected)
        {
            var number = (SqlNumber)value;
            var result = SqlMath.Round(number);

            var expectedNumber = (SqlNumber)expected;

            Assert.Equal(expectedNumber, result);
        }