public static void main(String[] args) { System.out.println(new BigDecimal(10).negate()); System.out.println(new BigDecimal(-3).negate()); System.out.println(new BigDecimal(0).negate()); } 运行结果: -10 3 0