Unexpected format-integer result

Saturday, 14 March 2015 · 3 messages · last reply 16 Mar 2015
NJ
Neven Jovanović14 Mar 2015 00:01 #

Hello,

when BaseX 8.0 performs the following XQuery expression:

format-integer(556, '#,##1')

I expect to see just: 556 -- but I get the following: ,556

Am I misreading something in the format-integer() chapter of XPath and XQuery Functions and Operators 3.0[1], or is this a bug?

Best, Neven

[1] <http://www.w3.org/TR/xpath-functions-30/#func-format-integer>

CG
Christian Grün14 Mar 2015 01:25 #

Hi Neven,

Thanks for the observation; it's a bug, now being tracked here [1].

Christian

[1] https://github.com/BaseXdb/basex/issues/1098

Quoted text · Neven Jovanović · 16 lines
On Sat, Mar 14, 2015 at 12:01 AM, Neven Jovanović <filologanoga at gmail.com> wrote: > Hello, > > when BaseX 8.0 performs the following XQuery expression: > > format-integer(556, '#,##1') > > I expect to see just: 556 -- but I get the following: ,556 > > Am I misreading something in the format-integer() chapter of XPath and > XQuery Functions and Operators 3.0[1], or is this a bug? > > Best, Neven > > [1] <http://www.w3.org/TR/xpath-functions-30/#func-format-integer>
CG
Christian Grün16 Mar 2015 15:16 #

Hi Neven,

The format-integer bug has been fixed. A new snapshot is available. It will also be fixed in 8.0.3 (to be released this week).

Best, Christian

Quoted text · Christian Grün · 28 lines
On Sat, Mar 14, 2015 at 1:25 AM, Christian Grün <christian.gruen at gmail.com> wrote: > Hi Neven, > > Thanks for the observation; it's a bug, now being tracked here [1]. > > Christian > > [1] https://github.com/BaseXdb/basex/issues/1098 > > > > On Sat, Mar 14, 2015 at 12:01 AM, Neven Jovanović > <filologanoga at gmail.com> wrote: >> Hello, >> >> when BaseX 8.0 performs the following XQuery expression: >> >> format-integer(556, '#,##1') >> >> I expect to see just: 556 -- but I get the following: ,556 >> >> Am I misreading something in the format-integer() chapter of XPath and >> XQuery Functions and Operators 3.0[1], or is this a bug? >> >> Best, Neven >> >> [1] <http://www.w3.org/TR/xpath-functions-30/#func-format-integer>

⚡Generated with XQuery