W3C home > Mailing lists > Public > public-qt-comments@w3.org > February 2012

[Bug 16077] New: format-number example is wrong

From: <bugzilla@jessica.w3.org>
Date: Wed, 22 Feb 2012 15:38:31 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-16077-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16077

           Summary: format-number example is wrong
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators 3.0
        AssignedTo: mike@saxonica.com
        ReportedBy: matthias.brantner@28msec.com
         QAContact: public-qt-comments@w3.org


The example for format-number should be changed from

format-number(12345.6, '#,###.00')

to

format-number(12345.6, '#.###,00')

The XQuery spec states that the default for the decimal-separator is (.) and
the grouping-separator is (,). With those defaults, the current example raises
an error.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Wednesday, 22 February 2012 15:38:37 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:48 UTC