private String formatPercentage(final double percentage) {
        // I'm sure there is a neater way of doing this
        if (percentage > 0.1) {
            return DEFAULT_PERCENT_FORMAT.format(percentage);
        } else if (percentage > 0.01) {
            return NumberFormat.getFormat("0.00").format(percentage);
        } else if (percentage > 0.001) {
            return NumberFormat.getFormat("0.000").format(percentage);
        } else if (percentage > 0.0001) {
            return NumberFormat.getFormat("0.0000").format(percentage);
        } else {
            return NumberFormat.getFormat("0.00000").format(percentage);
        }
    }
@param valueConsumer A consumer of the value of the point on the progress bar
                     that was clicked in the same units as used in {@link Progress}.
                     valueConsumer will not be called if the current value of {@link Progress}
                     has no upper bound.
stroom-core-client-widget/src/main/java/stroom/widget/progress/client/presenter/ProgressPresenter.java