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