Closed marschall closed 6 years ago
java.lang.Math offers a negateExact method for negating, there is no need to use Math.multiplyExact -1 to achieve the same.
Also the negate and abs tests are missing a fail in case the methods do not throw a ArithmeticException.
This change is
This should also fix #189
java.lang.Math offers a negateExact method for negating, there is no need to use Math.multiplyExact -1 to achieve the same.
Also the negate and abs tests are missing a fail in case the methods do not throw a ArithmeticException.
This change is