w3c / qtspecs

XSLT and XQuery Specifications - the source used to build the specs, and the errata
Other
30 stars 25 forks source link

[fo31] format-number() formatting of 0.0 in exponential notation #22

Closed michaelhkay closed 2 years ago

michaelhkay commented 3 years ago

The rules for format-number() with exponential notation, e.g format-number(0.0e0, '0.0e0') say the number should be scaled so that "The mantissa is less than 10^N, and at least 10^(N-1), where N is the scaling factor." But zero cannot be scaled in a way that satisfies these conditions.

michaelhkay commented 2 years ago

Fixed in the 4.0 draft.