Here you can find the source of reverseSign(BigDecimal decimal)
public static BigDecimal reverseSign(BigDecimal decimal)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; public class Main { /**// ww w . j a va2 s .c o m * The value -1, with a scale of 0. */ public static final BigDecimal MINUS_ONE = BigDecimal.valueOf(-1L); /** * reverse +,- sign. * * @see #minus(BigDecimal) */ public static BigDecimal reverseSign(BigDecimal decimal) { return minus(decimal); } /** * decimal * -1; * * @param decimal decimal * @return decimal * -1 */ public static BigDecimal minus(BigDecimal decimal) { return decimal.multiply(MINUS_ONE); } }