Skip to content

Error in decimal conversion #15

Open
@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
Decimal numbers between 0 and 1 is not converted into numbers.
Also negative numbers which aren't number! -01 is not converted into strings.

The following code fix the issue:

[not(string(number())='NaN' or 
 (starts-with(.,'0' ) and . != '0' and not(starts-with(.,'0.' ))) or 
 (starts-with(.,'-0' ) and . != '-0' and not(starts-with(.,'-0.' )))
)]

Original issue reported on code.google.com by [email protected] on 19 Jan 2011 at 11:05

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions