W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2007

[Bug 4231] K2-Literals-7

From: <bugzilla@wiggum.w3.org>
Date: Tue, 16 Jan 2007 12:42:35 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1H6ne7-0001cs-Om@wiggum.w3.org>

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





------- Comment #2 from tim@cbcl.co.uk  2007-01-16 12:42 -------
As I understand the term, underflow is the condition where a number is so close
to zero that a particular representation has insufficient precision to record
the number accurately.

Therefore a test for this condition is as follows:

(:*******************************************************:)
(: Purpose: Test for possible underflow of xs:decimal literals  :)
(:*******************************************************:)
0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000001

The expected result is 0.0 in the case of underflow, or the correctly returned
number if the implementation's decimal representation has sufficient precision.

For the test you gave, either err:FOAR0002 will be raised or the correctly
returned number if the implementation's decimal representation has sufficient
precision.  0.0 could never be returned (unless the implementation's decimal
representation was _really_ imprecise).
Received on Tuesday, 16 January 2007 12:42:40 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:32 UTC