You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is a fair point. The documentation of the number() function says it will convert the string into a number "if possible", and it definitely is possible to accept this number.
I checked, and the corresponding functions in Python, JavaScript, and Java all turn ".25" into 0.25. So clearly JSLT should do the same.
Sorry for the late response. In this case, I would expect that it treats it as a double. What would be alternative? That it fails on converting the int to a double?
Currently the "number" function fails on this input: ".25" or "-.25".
Our data provider sends decimal numbers in that format, and so far JSLT is the only technology we use that cannot work with it.
We can work around it padding the string with a missing zero before feeding it into the "number" function.
The text was updated successfully, but these errors were encountered: