Hi 

if i try  new BigDecimal(BigInteger.zero) for all the value it works.
So i try
        BigDecimal sconto = listinoVO.getScontoEuro();

           MathContext mathContext = new MathContext(19);

        BigDecimal roundeda = new BigDecimal(sconto.toString(), mathContext);

        sconto = roundeda.setScale(4, BigDecimal.ROUND_HALF_UP);

but i have the same error.I really don't understand!
-- 
View this message in context: 
http://www.nabble.com/AW%3A-The-resulting-value-is-outside-the-range-for-the-data-type-DECIMAL-NUMERIC%284%2C4%29.-tp25341817p25342054.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.

Reply via email to