You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "zeroshade (via GitHub)" <gi...@apache.org> on 2023/04/24 20:49:08 UTC

[GitHub] [arrow] zeroshade commented on issue #35310: Incorrect value when creating decimal128 from string (golang)

zeroshade commented on issue #35310:
URL: https://github.com/apache/arrow/issues/35310#issuecomment-1520806180

   Well this is just interesting. If I use precision <= 34 with the same value, then I get the expected `211233`. But if you use `35 <= prec <= 38` then you end up with this rounding issue. I'm not quite sure why it's happening yet, though it's likely something to do with the `SetPrec` call in the `FromString` function along with attempting to represent this value as a float. I'll see if i can try to figure out a way to fix this without breaking other cases.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org