class MathFunctions {

    public static BigDecimal percentage(long numerator, long denominator) {
        int scale = 2;
        if (denominator != 0) {
            return valueOf(numerator).multiply(valueOf(100)).divide(valueOf(denominator), scale, HALF_UP);
        }
        else {
            return ZERO.setScale(scale);
        }
    }

    private  MathFunctions();

}