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

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