Donate Share

Saxon XSLT and XQuery Processor

Tracker: Bugs

5 Trailing zero on small numbers - ID: 684487
Last Update: Settings changed ( mhkay )

When a numeric (double) value less than 0.001 is
converted to a string, the string contains a spurious
trailing 0.

For example,

<xsl:value-of select="0.00003"/>

outputs "0.000030"

The extra "0" is incorrect according to the XPath 1.0
rules for the string() function.

Present in 6.5.2, 7.3.1, and in all previous releases.

Test case: saxon36

Source code fixed in both branches.


Michael Kay ( mhkay ) - 2003-02-11 10:04

5

Closed

Fixed

Michael Kay

XPath conformance

v6.5.2

Public


Comments

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2003-08-14 14:21 mhkay
resolution_id None 2003-08-14 14:21 mhkay
close_date - 2003-08-14 14:21 mhkay