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: Wed, 30 Sep 2015 11:51:13 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-28845-523-1OfxCbldkY@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28845

--- Comment #15 from Michael Kay <mike@saxonica.com> ---
>am I correct in thinking that if the input is an xs:decimal $d, the adjusted number is of type

1. xs:double if $d * 1000 would cause a numeric overflow error
2. xs:decimal otherwise.

Yes. Well, the rule says it's Infinity, and you could actually use either
xs:double or xs:float infinity, both would produce the same result. I did think
about whether I need to say more precisely what "multiply by 100" means, e.g.
by referring to op:numeric-multiply, but it seems excessively paranoid.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 30 September 2015 11:51:15 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 30 September 2015 11:51:15 UTC