Bug 20994 - Wrong result in format-number example
Wrong result in format-number example
Status: RESOLVED FIXED
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.0
Candidate Recommendation
All All
: P2 minor
: ---
Assigned To: Michael Kay
Mailing list for public feedback on specs from XSL and XML Query WGs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-14 10:39 UTC by Petr Kadlec
Modified: 2013-02-16 12:43 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.