Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write_csv outputting negative zero #1552

Open
sformel-usgs opened this issue Aug 23, 2024 · 0 comments
Open

write_csv outputting negative zero #1552

sformel-usgs opened this issue Aug 23, 2024 · 0 comments

Comments

@sformel-usgs
Copy link

write_csv outputs negative zero, where write.csv correctly outputs zero without a negative sign. Within RStudio, the values are interpreted correctly, as seen here:

image

I'm using readr_2.1.5

tibble(min = 0/-100,
  max = 2/-100
) %>% 
  readr::write_csv("neg_zero_example_readr.csv")

tibble(min = 0/-100,
       max = 2/-100
) %>% 
  write.csv("neg_zero_example_base.csv")
@sformel-usgs sformel-usgs changed the title wrtie_csv outputting negative zero write_csv outputting negative zero Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant