class Percentile {

    public static Percentile createStrict(double percentile) {
        if (MIN_PERCENTILE > percentile || MAX_PERCENTILE < percentile) {
            throw new IllegalArgumentException("The 'percentile' must be in the range (0, 100].");
        }

        if (getNumDecimalPlaces(percentile) > 2) {
            throw new IllegalArgumentException("The 'percentile' has over two decimal places.");
        }

        return new Percentile(percentile);
    }

    private  Percentile(double percentile);

}