Java examples for java.math:BigDecimal
Returns the absolute value of the BigDecimal value, handles null.
//package com.java2s; import java.math.BigDecimal; public class Main { /**//from w w w . j av a2s . c om * Returns the ABS of the value, handles null. */ public static BigDecimal abs(final BigDecimal value) { return value != null ? value.abs() : null; } }