Revision 2277
org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/dataTypes/impl/coercion/CoerceToString.java | ||
---|---|---|
88 | 88 |
s = df.format(value); |
89 | 89 |
|
90 | 90 |
} else if (value instanceof Float || value instanceof Double) { |
91 |
double d = (double) value;
|
|
91 |
double d = ((Number)value).doubleValue();
|
|
92 | 92 |
NumberFormat nf = NumberFormat.getInstance(locale); |
93 | 93 |
if (d > 1.8014398509481984E16 || d < -1.8014398509481984E16) { |
94 | 94 |
// Esto viene a ser la maxima precision de la mantisa, Math.pow(2, 54), |
Also available in: Unified diff