W3C home > Mailing lists > Public > public-qt-comments@w3.org > February 2016

[Bug 29409] [FO31] fn:format-number with xs:double/float and (non-)rounding

From: <bugzilla@jessica.w3.org>
Date: Thu, 04 Feb 2016 14:42:52 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29409-523-ONJz3pXsEE@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29409

--- Comment #2 from Abel Braaksma <abel.braaksma@xs4all.nl> ---
Just a short rationale and FYI for the record: the text in the spec says "not
counting leading and trailing zeroes". This includes non-fractional zeroes.

As such, *if and only if* the number xs:float(120001 is represented by the same
exact IEEE-754 representation as xs:float(120000), then format-number should
(not must!) output the string "120000", as it is 2 digits (trailing zeroes
removed) against 6. It was recognized during the meeting that such an algorithm
is known to be non-trivial, hence the "SHOULD" and not "MUST" in the spec.

Bugs may separately be raised against the spec to add a dependency, or add an
alternative outcome, but this bug will not be moved to QT3.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Thursday, 4 February 2016 14:42:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:58 UTC