Open JohnnyZoomis opened 1 month ago
Thanks. Is the following helpful: https://tibble.tidyverse.org/articles/numbers.html (linked from https://pillar.r-lib.org/articles/numbers.html) ? Is the behavior different from the documentation?
Also:
round(100.5)
#> [1] 100
Created on 2024-10-17 with reprex v2.1.1
I see that the trailing dot is confusing, perhaps we should always show at least one decimal digit if we show the dot.
Ahh. Three sig figs would explain it. Apologies for taking up the team's time.
Perhaps I still missed it in the package help pages proper. But if not, maybe the behavior could be mentioned there somewhere. I am agnostic about the raised trailing digit issue, but that's my N=1 opinion :)
Thanks again.
I have encountered an example of a tibble object being printed out, where the last (non-zero) digit appears to be wrongly truncated from the printing.
Here is the actual example R code which produces the issue. [I am using RStudio.]
The output is
The last column in the second row should be 100.5. But clearly it has lost the tenths digit.
Using the View() function, I could explore the structure of the tibble in question visually. Here is a screenshot to show that the relevant value is actually stored correctly.
I checked the help pages, expecting to see this was a consequence of a pure '.5' being rounded, which is somewhat more subtle than run-of-the-mill rounding. I could not find any such information -- obviously if I have missed this I would be very grateful to have it pointed out!
Here is sessionInfo():
Here is my RStudio info: