This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20994 - Wrong result in format-number example
Summary: Wrong result in format-number example
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.0 (show other bugs)
Version: Candidate Recommendation
Hardware: All All
: P2 minor
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-14 10:39 UTC by Petr Kadlec
Modified: 2013-02-16 12:43 UTC (History)
0 users

See Also:


Attachments

Description Petr Kadlec 2013-02-14 10:39:42 UTC
In section 4.7.2, there is an example stating that

  The expression format-number(12345.6, '#,###.00') returns "12,345.00".

But there is no reason why this should return "12,345.00" instead of "12,345.60".
Comment 1 Michael Kay 2013-02-16 12:43:32 UTC
Thank you for pointing this out. I have made the correction.