Here you can find the source of subtract(BigDecimal v1, BigDecimal v2)
public static BigDecimal subtract(BigDecimal v1, BigDecimal v2)
//package com.java2s; import java.math.BigDecimal; public class Main { public static BigDecimal subtract(String v1, String v2) { return subtract(new BigDecimal(v1), new BigDecimal(v2)); }//from w w w.j a v a 2s .com public static BigDecimal subtract(double v1, double v2) { return subtract(new BigDecimal(v1), new BigDecimal(v2)); } public static BigDecimal subtract(BigDecimal v1, BigDecimal v2) { return v1.subtract(v2); } }