class CGIARProvider implements ElevationProvider {

    int down(double val) {
        // 'rounding' to closest 5
        int intVal = (int) (val / degree) * degree;
        if (!(val >= 0 || intVal - val < invPrecision))
            intVal = intVal - degree;

        return intVal;
    }

}