public static BigDecimal inverse ( final BigDecimal value ) { if ( isNotZero ( value ) ) { return BigDecimal . ONE . setScale ( MAX_SCALE_FOR_INVERSE ) . divide ( value , BigDecimal . ROUND_HALF_UP ) ; } return null ; }
Return the inverse of value if no tnull of zero