<?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>3134</bug_id>
          
          <creation_ts>2006-04-21 10:36:20 +0000</creation_ts>
          <short_desc>fn-max-2 and fn-min-2 have wrong serialization for double number</short_desc>
          <delta_ts>2006-06-16 10:16:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>0.9.0</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>VERIFIED</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="Alberto Massari">amassari</reporter>
          <assigned_to name="Andrew Eisenberg">andrew.eisenberg</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9366</commentid>
    <comment_count>0</comment_count>
    <who name="Alberto Massari">amassari</who>
    <bug_when>2006-04-21 10:36:20 +0000</bug_when>
    <thetext>Both queries expect that a double value of &quot;5&quot; gets serialized as 5E0, but the correct serialization for values less than 1E6 is &quot;5&quot;.
Either change the query to use &quot;instance of xs:double&quot; or change the values to be bigger than 1E6.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9409</commentid>
    <comment_count>1</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-04-24 14:37:49 +0000</bug_when>
    <thetext>Alberto:

Correct.  I changed the queries to:

fn:max((xs:integer(5000000000),xs:double(3e0)))
fn:min((xs:integer(5),xs:double(3e8)))

Please close the bug if in agreement.

Thanks,
Carmelo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10029</commentid>
    <comment_count>2</comment_count>
    <who name="Alberto Massari">amassari</who>
    <bug_when>2006-06-14 18:31:59 +0000</bug_when>
    <thetext>fn-min-2 is still wrong; it expects 5E0 while the result (a double of value 5) must be serialized as 5. A correct query would be

fn:min((xs:integer(5000000),xs:double(3e8)))

that return 5E6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10032</commentid>
    <comment_count>3</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-06-14 18:53:15 +0000</bug_when>
    <thetext>Alberto:

Correct.  This was a bit of an oversight.  Changed query.  This change is public and you can confirm.  Close the bug if in agreement.

Thanks,
Carmelo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10041</commentid>
    <comment_count>4</comment_count>
    <who name="Alberto Massari">amassari</who>
    <bug_when>2006-06-15 10:17:33 +0000</bug_when>
    <thetext>Carmelo,
also the expected result should be changed from 5E0 to 5E6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10042</commentid>
    <comment_count>5</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-06-15 13:00:52 +0000</bug_when>
    <thetext>Alberto:
Correct.  Will this one ever go away? Value changed.

Carmelo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10043</commentid>
    <comment_count>6</comment_count>
    <who name="Alberto Massari">amassari</who>
    <bug_when>2006-06-15 14:41:54 +0000</bug_when>
    <thetext>Carmelo,
I made a mistake in suggesting 5E6 as the right value; the correct serialization format for a double is 5.0E6
Can you update the result?

Thanks,
Alberto</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10046</commentid>
    <comment_count>7</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-06-15 18:31:00 +0000</bug_when>
    <thetext>Alberto:

Not a problem.  I should had catch that though.  taken care of it already.

Carmelo</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>