Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 66423 invoked from network); 30 Apr 2008 15:02:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Apr 2008 15:02:52 -0000 Received: (qmail 34828 invoked by uid 500); 30 Apr 2008 15:02:48 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 34773 invoked by uid 500); 30 Apr 2008 15:02:48 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 34762 invoked by uid 99); 30 Apr 2008 15:02:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Apr 2008 08:02:48 -0700 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.162.179] (HELO el-out-1112.google.com) (209.85.162.179) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Apr 2008 15:02:03 +0000 Received: by el-out-1112.google.com with SMTP id s27so252181ele.5 for ; Wed, 30 Apr 2008 08:02:15 -0700 (PDT) Received: by 10.114.195.19 with SMTP id s19mr837185waf.57.1209567734991; Wed, 30 Apr 2008 08:02:14 -0700 (PDT) Received: by 10.114.73.5 with HTTP; Wed, 30 Apr 2008 08:02:14 -0700 (PDT) Message-ID: <935068bf0804300802r227bb16ame6983ef02c28a958@mail.gmail.com> Date: Thu, 1 May 2008 01:02:14 +1000 From: "Dion Gillard" To: "Commons Users List" Subject: Re: [JEXL] Integer division In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8600_32499439.1209567734982" References: <20080429111936.100360@gmx.net> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_8600_32499439.1209567734982 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline It does seem the docs are out of whack...maybe a bug was introduced during the 1.0 phase.... I should check the tests On Wed, Apr 30, 2008 at 3:17 AM, Rahul Akolkar wrote: > On 4/29/08, Daniel Westheide wrote: > > Hello, > > > > in the JEXL syntax reference - > http://commons.apache.org/jexl/reference/syntax.html - it says that the > div operator can be used to perform an integer division. In the example, "4 > div 3" is supposed to give 1. > > > > However, when I use the div operator in JEXL 1.0 or 1.1, its behaviour > is identical to that of the division operator "/" - integer division simply > seems not to be possible in JEXL. Is this a bug or is the documentation > simply outdated? > > > > > A quick look at the JEXL parser code seems to suggest that div and / > are treated equivalently by the parser. > > Unless anyone chimes in WRT that bit of documentation about integer > division (and/or the original intent for the operators), seems the > docs need to be changed. > > -Rahul > > > > > Any help would be very much appreciated. > > > > Best regards, > > > > Daniel > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > > -- dIon Gillard "Any sufficiently advanced technology is indistinguishable from magic" - Arthur C. Clarke 1917 - 2008 ------=_Part_8600_32499439.1209567734982--