commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henrib <hen...@apache.org>
Subject Re: [jexl] default numeric object type
Date Mon, 30 Jan 2012 10:55:48 GMT
Hi;
Unfortunately, there is no easy way to change this behavior; I've created 
https://issues.apache.org/jira/browse/JEXL-126 JEXL-126  to change the
default in 3.0 since it's more natural to use 'double' instead of 'float' as
default.

Note however that JEXL arithmetic will convert floats to double when
necessary so the fact that these literals are float should not be a problem;
do you have a specific case where you lose precision over what double
provide?

Cheers
Henrib

--
View this message in context: http://apache-commons.680414.n4.nabble.com/jexl-default-numeric-object-type-tp4326105p4340633.html
Sent from the Commons - User mailing list archive at Nabble.com.

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


Mime
View raw message