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