-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function number is not working with negative values #160
Comments
Thank you very much for finding this bug and reporting it so clearly. This is definitely the most embarrassing bug we've ever had in JSLT. 🤦 It's fixed now. I'll do a full release quite soon so we can get this fix out there. |
Nice! |
Hello, |
OMG. You're right. Will fix. |
The problem was that we were storing the sign of the number in The problem also turned out to exist for numbers like Should be fixed now, but please do test and verify. |
@larsga This fix wasn't released to mvn repository, what's the plan on doing that? |
I can do a release with that fix. I'll be travelling, but will get it done as soon as I can. |
Version 0.1.14 is released now. |
Hello, |
Ouch! You're right. Fixing. |
Hi.
I have two examples that the conversion String to Number, is not working good.
I'd like simply convert String to Number, but something i'ts happen and change de value
JSLT INPUT:
{
"value1": -0.2514,
"value2": number("-0.2514"),
"value3": -1.4,
"value4": number("-1.4"),
}
RESPONSE INPUT:
{
"value1" : -0.2514,
"value2" : 0.2514,
"value3" : -1.4,
"value4" : -0.6
}
The text was updated successfully, but these errors were encountered: