[Bug 1794] New: Casting float/double to string

http://www.w3.org/Bugs/Public/show_bug.cgi?id=1794

           Summary: Casting float/double to string
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators
        AssignedTo: ashok.malhotra@oracle.com
        ReportedBy: mrys@microsoft.com
         QAContact: public-qt-comments@w3.org


Since casting from float/double to string is also used in serialization, we 
need to make sure that if I have a a double value that due to the binary to 
decimal conversion will result in a number such as 0.99999999998 instead of 
1.0. 

Since users do not want 0.9999999998 in their serialization output, we should 
allow implementations to do the usual rounding.

Received on Thursday, 21 July 2005 17:21:13 UTC