commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henrib <hbies...@gmail.com>
Subject [JEXL] / operator behavior change
Date Wed, 02 Sep 2009 15:31:48 GMT

As part of JEXL-87 (which relates to JEXL-65), the / operator now does
integer divisions on integers (big or small); in other words, it behaves the
same way the other operators do.

This is the common behavior in several languages (Java, ECMAScript, C, C++)
and the workaround if you need decimal precision is 4 characters away: 'x /
y' becomes 'x*1.0 / y' 
Given the targeted (known) usages of JEXL, it seems preferable to behave as
commonly expected rather than introducing another operator dedicated to
integer division.

Any strong votes against this modification ?
-- 
View this message in context: http://www.nabble.com/-JEXL----operator-behavior-change-tp25259888p25259888.html
Sent from the Commons - Dev mailing list archive at Nabble.com.


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


Mime
View raw message