ggalt icon indicating copy to clipboard operation
ggalt copied to clipboard

Add accuracy parameter to comma function to fix rounding.

Open hcraT opened this issue 5 years ago • 0 comments

I think that the function comma has been changed and now by default number get rounded to the nearest integer. The pull request adds the parameter to restore the original behavior that was to print one decimal digit. Without PR:

> byte_format()(1.5 * 1024^3)
[1]  "2 Gb"

with PR

> byte_format()(1.5 * 1024^3)
[1]  "1.5 Gb"

hcraT avatar Mar 22 '19 14:03 hcraT