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

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