Replies: 3 comments 5 replies
-
I think probably the best way to deal with this is to give Could you give us some examples of the decimal values? |
Beta Was this translation helpful? Give feedback.
-
Two of these were already working. Commit 08fbaef fixes so the third one also works now. But perhaps you have even bigger examples? |
Beta Was this translation helpful? Give feedback.
-
The scientific notation is not a JSLT issue, because JSLT will return a double to you. So whether it's scientific notation or not will depend on how you serialize the result. You can configure Jackson not to use scientific notation if you want, but you shouldn't really care. It's the same numbers either way. Any rounding is a different issue, of course. Looks like -72915539138.234933 just isn't expressible as a Java double. It ends up rounded off to -72915539138.23494-72915539138.23494. So to solve this one we really would need to use a |
Beta Was this translation helpful? Give feedback.
-
Hi Team,
first of all, great work. I love your approach. It's that simple, even I can use it.. ;)
However, since I need to transform Json2Json containing large decimal-values consumed as String, I noticed a significant limitation in the number()-function.
Obviously I have a parsing-limitation for the Integer (Max-Int) and a max precision of Double. The return-type is also a DoubleNode: com.schibsted.spt.data.jslt.impl.NodeUtils:172-194.
Is it an option to extend the existing number()-function or create a new function for precise Decimal-Values? Parsing into a BigDecimal an return a DecimalNode or something like that..
Thx and regards
Beta Was this translation helpful? Give feedback.
All reactions