You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "schierge.tobias" <sc...@inside-online.de> on 2006/09/15 22:11:28 UTC

[Jexl] Number type Coercion

Hi,

in Jexl it is not possible to use a custom Number without losing decimals
because Number instances are always converted to Long. Other Types as Double
or Float cannot be customized as they are final.

I'm trying to use a double  value which also implements a list interface for
indexed access to simulate value histories (class Xxx extends Number
implements List<Double>). This is not possible, No custom Types  at all can
be converted to Double or Float. Wouldn't it be more consistent to use the
doubleValue or floatValue  method of number when resolving the value?

Regards,

Tobias
-- 
View this message in context: http://www.nabble.com/-Jexl--Number-type-Coercion-tf2279637.html#a6332400
Sent from the Commons - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org