Here you can find the source of minus(BigDecimal num1, BigDecimal num2)
public static BigDecimal minus(BigDecimal num1, BigDecimal num2)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; public class Main { public static BigDecimal minus(BigDecimal num1, BigDecimal num2) { if (null == num1) { num1 = BigDecimal.ZERO; }// w w w . j av a2 s .com if (null == num2) { num2 = BigDecimal.ZERO; } return num1.subtract(num2); } }