Revision 2081 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/dataTypes/impl/coercion/CoerceToDecimal.java

View differences:

CoerceToDecimal.java
94 94
          }
95 95
        }
96 96
      }
97
      num.setScale(theContext.scale(), theContext.roundMode());
97
      if( theContext.hasScale() ) {
98
        // Ojo, que este set no es un set. Contruye un nuevo BigDecimal, no
99
        // modifica el existente.
100
        num = num.setScale(theContext.scale(), theContext.roundMode());
101
      }
98 102
      return num;
99 103
    } catch (CoercionException e) {
100 104
      throw e;

Also available in: Unified diff