Here you can find the source of negation(BigDecimal bigDecimal)
public static BigDecimal negation(BigDecimal bigDecimal)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; public class Main { public static BigDecimal negation(BigDecimal bigDecimal) { if (bigDecimal == null) { return zeroBigDecimal(); }/*from w ww. j ava2s . c o m*/ return bigDecimal.negate(); } public static BigDecimal zeroBigDecimal() { return new BigDecimal("0.00"); } }