Here you can find the source of subtract(BigDecimal aValue1, BigDecimal aValue2)
public static BigDecimal subtract(BigDecimal aValue1, BigDecimal aValue2)
//package com.java2s; import java.math.BigDecimal; public class Main { public static BigDecimal subtract(BigDecimal aValue1, BigDecimal aValue2) { if (aValue1 == null || aValue2 == null) return null; return aValue1.subtract(aValue2); }//from w ww . jav a 2 s. c o m }