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

[GitHub] [arrow] rohanjain101 commented on issue #34901: Inconsistent cast behavior between array and scalar for int64

rohanjain101 commented on issue #34901:
URL: https://github.com/apache/arrow/issues/34901#issuecomment-1499544223

   @danepitkin thank you for the clarification. In numpy however, the cast succeeds, it seems as if full value is preserved:
   
   >>> np.array([18014398509481984]).astype("float64")
   array([1.80143985e+16])
   >>>
   
   Is their an internal difference in how double values are stored between arrow and numpy that would cause the difference?


-- 
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