issues: 441192361
This data as json
| id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 441192361 | MDU6SXNzdWU0NDExOTIzNjE= | 2945 | Implicit conversion from int to float tampers with values when int is not representable as float | 14000880 | closed | 0 | 1 | 2019-05-07T11:57:20Z | 2022-04-09T02:14:28Z | 2022-04-09T02:14:28Z | NONE | ```python ds = xr.Dataset() val = 95042027804193144 ds['var1'] = xr.DataArray(val) ds_1 = ds.where(ds.var1==val) print(ds_1.var1.dtype) dtype('float64') print(int(ds_1.var1)) 95042027804193152 ``` Problem descriptionAs described in #2183, int values are converted to float in Expected OutputI guess this is hard to fix. At a minimum, Output of
|
{
"url": "https://api.github.com/repos/pydata/xarray/issues/2945/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | 13221727 | issue |