-
Notifications
You must be signed in to change notification settings - Fork 317
Closed
Labels
is:bugBug description.Bug description.status:completedFrom the developer perspective, the issue was solved (bug fixed, question answered,...)From the developer perspective, the issue was solved (bug fixed, question answered,...)
Description
In my understanding of '4.4 Number functions' of XML Path Language (XPath) Version 1.0:
a string that consists of optional whitespace followed by an optional minus sign followed
by a Number followed by whitespace is converted to the IEEE 754 number that is nearest
(according to the IEEE 754 round-to-nearest rule) to the mathematical value represented
by the string; any other string is converted to NaN
I would expect that an empty string is converted to NaN.
Currently, libyang converts it into 0 (see
Line 692 in 4c73341
| num = strtold(str, &ptr); |
Do you agree or do I read the standard wrong again (as in #2140 that is remotely related)?
Metadata
Metadata
Assignees
Labels
is:bugBug description.Bug description.status:completedFrom the developer perspective, the issue was solved (bug fixed, question answered,...)From the developer perspective, the issue was solved (bug fixed, question answered,...)