db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pedro <pedro.r...@libero.it>
Subject Re: AW: The resulting value is outside the range for the data type DECIMAL/NUMERIC(4,4).
Date Tue, 08 Sep 2009 08:38:46 GMT


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.

View raw message