You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "pitrou (via GitHub)" <gi...@apache.org> on 2023/10/03 14:48:30 UTC

Re: [I] [Python] a float32 value in a structure is stored incorrectly above a given number [arrow]

pitrou commented on issue #37956:
URL: https://github.com/apache/arrow/issues/37956#issuecomment-1745136995

   Simply because of a float32's limited precision. It only has 24 bits of internal precision in its mantissa. Same with Numpy:
   ```python
   >>> float(np.float32(1693260000.0))
   1693260032.0
   ```
   


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