<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>28567</bug_id>
          
          <creation_ts>2015-04-27 16:15:10 +0000</creation_ts>
          <short_desc>[FO31] format-number: grouping-separators, mantissa part</short_desc>
          <delta_ts>2016-12-16 19:55:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Functions and Operators 3.1</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Debbie Lockett">debbie</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>pwalmsley</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>119942</commentid>
    <comment_count>0</comment_count>
    <who name="Debbie Lockett">debbie</who>
    <bug_when>2015-04-27 16:15:10 +0000</bug_when>
    <thetext>A few of issues with the format-number() function.

1. The last example in 4.7.2 should say: returns &quot;12.346E2&quot;

2. 4.7.3 includes the rule:
&quot;A sub-picture must contain at least one character that is an optional-digit-sign or a member of the decimal-digit-family.&quot;
I believe a new rule (or amendment) is required to say:
&quot;The mantissa part must contain at least one character that is an optional-digit-sign or a member of the decimal-digit-family.&quot;
e.g. so that a pattern such as &quot;.e99&quot; is not allowed.

3. 4.7.3 includes the rule:
&quot;A sub-picture must not contain a grouping-separator-sign adjacent to a decimal-separator-sign.&quot;
Should there in fact be a rule to say that a grouping-separator-sign is not allowed at the end of an integer part?
e.g. consider the pattern &quot;#,&quot;.

4. There is no rule to say that grouping-separator-signs can not be adjacent. Should there be? If this is allowed, I believe that by following the algorithm in 4.7.4 (Analysing the picture string) currently duplicates get ignored e.g. format-number(12345.678, &apos;#,,###&apos;) returns 12,345</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120085</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-05-05 17:17:04 +0000</bug_when>
    <thetext>The changes were accepted and have been applied.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120452</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-05-23 18:56:41 +0000</bug_when>
    <thetext>*** Bug 28682 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>