public void MaxBigDecimal() { BigDecimal max1 = new BigDecimal(value2, 1); BigDecimal max2 = new BigDecimal(value2, 4); Assert.True(BigMath.Max(max1, max2).Equals(max1), "1233456000.0 is not greater than 1233456"); max1 = new BigDecimal(-1.224D); max2 = new BigDecimal(-1.2245D); Assert.True(BigMath.Max(max1, max2).Equals(max1), "-1.224 is not greater than -1.2245"); max1 = new BigDecimal(123E18); max2 = new BigDecimal(123E19); Assert.True(BigMath.Max(max1, max2).Equals(max2), "123E19 is the not the max"); }