Revision 2208 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/dataTypes/impl/coercion/CoerceToDecimal.java
CoerceToDecimal.java | ||
---|---|---|
105 | 105 |
// modifica el existente. |
106 | 106 |
num = num.setScale(theContext.scale(), theContext.roundMode()); |
107 | 107 |
} |
108 |
if( num.precision()>theContext.precision() ) { |
|
108 |
if( theContext.hasPrecision() && num.precision()>theContext.precision() ) {
|
|
109 | 109 |
throw new ArithmeticException("Overflow"); |
110 | 110 |
} |
111 | 111 |
return num; |
Also available in: Unified diff