From: Clapham, Paul <pclapham@co...> - 2001-10-10 17:19:37
It's not a bug. If the parameter isn't a string of digits, with an optional
decimal point in it somewhere and an optional minus sign at the front, then
number() must return NaN as its result.
From: Ray Benjamin [mailto:raybenjamin13@...]
Sent: October 10, 2001 09:30
Subject: [saxon] Fwd: Possible bug in string to number conversion
I apologize if this appears twice, I set up my account with the wrong email
address the first time.
I've just started playing around with Saxon, Instant Saxon to be
precise. While working on a style sheet to convert an XML document to
HTML, I ran into an apparent bug.
1) When reading numbers in via number() function, a series of digits
prefixed by a plus gives a NaN result.
2) When reading numbers in via number() function, a series of digits that
contains commas separating groups of three digits yields NaN.
Get latest updates about Open Source Projects, Conferences and News.