- From: Ashok Malhotra <ashokma@microsoft.com>
- Date: Tue, 7 Oct 2003 15:30:57 -0700
- To: "Sarah Wilkin" <swilkin@apple.com>, <public-qt-comments@w3.org>
Sarah: Thank you for your comment. This has been fixed. The (single) rule now reads: - If ST is xs:float or xs:decimal, or types derived from them, then TV is xs:double(SV cast as xs:string) and the conversion is complete. All the best, Ashok > -----Original Message----- > From: public-qt-comments-request@w3.org [mailto:public-qt-comments- > request@w3.org] On Behalf Of Sarah Wilkin > Sent: Tuesday, October 07, 2003 3:28 PM > To: public-qt-comments@w3.org > Subject: [F&O] 17.8 Two definitions for decimal -> double > > > In section 17.8 there appears to be two definitions for decimal -> > double: > > "If ST is xs:float or xs:decimal, or types derived from them, then TV > is xs:double(cast as xs:string( SV )) and the conversion is complete. > > If ST is xs:decimal, or a type derived from xs:decimal, then TV is SV > converted to a xs:double value and the conversion is complete." > > Which is correct? (and could the other please be removed for > clarification) Also, why would float need to be first cast to a string > when double represents a superset of its values (both for the actual > value as well as mantissa and exponent)? >
Received on Tuesday, 7 October 2003 18:31:01 UTC