class IntegerOperations implements MathOperations<Integer>, Comparator<Integer> {

    @Override
    public Integer keepSignificantFigures( Integer value,
                                           int numSigFigs ) {
        if (numSigFigs < 0) return value;
        if (numSigFigs == 0) return 0;
        int currentExp = getExponentInScientificNotation(value);
        int decimalShift = -currentExp + numSigFigs - 1;
        return roundUp(value, decimalShift);
    }

}