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