This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1445 - [FO] precision of xs:float
Summary: [FO] precision of xs:float
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 1.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Ashok Malhotra
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-14 00:24 UTC by Michael Rys
Modified: 2005-09-29 11:16 UTC (History)
0 users

See Also:


Attachments

Description Michael Rys 2005-05-14 00:24:08 UTC
The new casting rules for casting to xs:float say:

if E exceeds 104 (the maximum exponent value in the value space of xs:float) 
then TV is the xs:float value INF or -INF depending on the sign of M.

if E is less than -149 (the minimum exponent value in the value space of 
xs:float) then TV is the xs:float value positive or negative zero depending on 
the sign of M


Note that certain architectures such as the Intel x86 architecture allow float 
values with larger exponent values. We should not penalize such architectures 
and allow them to represent larger and smaller xs:float values before 
switching to INF/-INF.
Comment 1 Ashok Malhotra 2005-05-19 22:26:20 UTC
The joint QT WGs discussed this request on 5/19/2005 and declined to make this
change.

Ashok Malhotra