Hi guys.
Im using facelets framework which depends on el-ri library.
And i have a problem with BigDecimal value submition.
I found such strings in ELSupport sources:
protected final static Number coerceToNumber(final Number number,
final Class type) throws IllegalArgumentException {
...
if (BigDecimal.class.equals(type)) {
if (number instanceof BigInteger) {
return new BigDecimal((BigInteger) number);
}
// return new BigDecimal(number.toString());
return new BigDecimal(number.doubleValue());
}
...
}
Why [b]return new BigDecimal(number.doubleValue());[/b] ????
If number = 1,1 (f.e.) then this method returns 1,10000000000012312345.
"return new BigDecimal(number.toString());" - such implementation is more correct as for me but it was disabled. Why?
[b]So, what should i do to fix it?? May be there is some workaround on this situation.[/b]
Thanks in advance.
[Message sent by forum member 'wizard_' (wizard_)]
http://forums.java.net/jive/thread.jspa?messageID=238233