private double round(double number) {
        boolean isNegative = isNegative(number);
        if (isNegative)
            number = -number;

        // Apply rounding after multiplier
        if (roundingDouble > 0.0) {
            // number = roundingDouble
            //    * round(number / roundingDouble, roundingMode, isNegative);
            return round(
                number, roundingDouble, roundingDoubleReciprocal, roundingMode,
                isNegative);
        }
        return number;
    }
private double round ( double number ) { boolean isNegative = isNegative ( number ) ; if ( isNegative ) number = - number ; if ( roundingDouble > 0.0 ) { return round ( number , roundingDouble , roundingDoubleReciprocal , roundingMode , isNegative ) ; } return number ; }
usage: round(multiply(numberToBeFormatted))