public void StripTrailingZero() { BigDecimal sixhundredtest = BigDecimal.Parse("600.0"); Assert.True(BigMath.StripTrailingZeros(sixhundredtest).Scale == -2, "stripTrailingZero failed for 600.0"); /* Single digit, no trailing zero, odd number */ BigDecimal notrailingzerotest = BigDecimal.Parse("1"); Assert.True(BigMath.StripTrailingZeros(notrailingzerotest).Scale == 0, "stripTrailingZero failed for 1"); /* Zero */ //regression for HARMONY-4623, NON-BUG DIFF with RI BigDecimal zerotest = BigDecimal.Parse("0.0000"); Assert.True(BigMath.StripTrailingZeros(zerotest).Scale == 0, "stripTrailingZero failed for 0.0000"); }