class MathUtils {

    public static double getRounded( double value )
    {
        int scale = ( value < 1d && value > -1d ) ? 2 : 1;
        
        return Precision.round( value, scale );
    }

}