package miwax.java_conf.gr.jp.frugalitycalc.model;

import java.math.BigDecimal;

public enum Operation {
    PLUS     { BigDecimal apply(BigDecimal x, BigDecimal y) {return x.add(y);} },
    MINUS    { BigDecimal apply(BigDecimal x, BigDecimal y) {return x.subtract(y);} },
    MULTIPLE { BigDecimal apply(BigDecimal x, BigDecimal y) {return x.multiply(y);} },
    DIVIDE   { BigDecimal apply(BigDecimal x, BigDecimal y) {return x.divide(y, 8, BigDecimal.ROUND_HALF_UP);} };

    abstract BigDecimal apply(BigDecimal x, BigDecimal y);
}

@@ -73,16 +73,46 @@
 Decimal;
+%0Aimport java.math.MathContext;
 %0A%0Apublic
@@ -469,35 +469,30 @@
 (y, 
-8, BigDecimal.ROUND_HALF_UP
+MathContext.DECIMAL128
 );%7D 

Change the accuracy of the division to the IEEE 754R Decimal28