W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2015

[Bug 28845] fn:format-number, formatting rules for exponential notation

From: <bugzilla@jessica.w3.org>
Date: Mon, 14 Sep 2015 13:40:11 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-28845-523-jyi2oC9rWG@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28845

Tim Mills <tim@cbcl.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tim@cbcl.co.uk

--- Comment #10 from Tim Mills <tim@cbcl.co.uk> ---
If the input to fn:format-number is xs:decimal, the scaling in rules in:

(4) If the sub-picture contains a percentXP31 character, the number is
multiplied by 100. If the sub-picture contains a per-milleXP31 character, the
number is multiplied by 1000. The resulting number is referred to below as the
adjusted number.

(5) If the minimum exponent size is non-zero, then the adjusted number is
scaled to establish a mantissa and an integer exponent. The mantissa and
exponent are chosen such that (a) the primitive type of the mantissa is the
same as the primitive type of the adjusted number (integer, decimal, float, or
double), (b) the mantissa multiplied by ten to the power of the exponent is
equal to the adjusted number, and (c) the number of significant digits in the
integer part of the mantissa is equal to the minimum integer part size.

may exceed the implementation's size limit for xs:decimal.  Should this not be
avoided?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 14 September 2015 13:40:17 UTC

This archive was generated by hypermail 2.3.1 : Monday, 14 September 2015 13:40:17 UTC