mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #183] Hide decimals when there are only zeroes instead of approximately zero #80
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @eugenesvk on GitHub (Sep 21, 2021).
Original GitHub issue: https://github.com/bootandy/dust/issues/183
For example, I have two files with the sizes of 1 byte and 1024 bytes, dust would provide the following output:
However, since
1024is precisely1KB, abbreviating it to1.0Kis misleading as I might think that in reality it's1.04Kshortened to the first decimal, so I'd prefer to see the following output, which is also cleaner@bootandy commented on GitHub (Sep 24, 2021):
I'm afraid I really don't like that syntax, so that's a no from me.