1private static void testBdEquality()
2{
3 BigDecimal a = new BigDecimal("2.00");
4 BigDecimal b = new BigDecimal("2.0");
5
6 System.out.println(a.equals(b)); // false
7
8 System.out.println(a.compareTo(b) == 0); // true
9}