emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 2b97e83cc1 2/2: Fix off-by-one file size formatting in ls-lis


From: Stefan Monnier
Subject: Re: master 2b97e83cc1 2/2: Fix off-by-one file size formatting in ls-lisp
Date: Sat, 12 Feb 2022 14:42:07 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

>> I know.  And I'm asking why `file-size-human-readable` gives so
>> much accuracy.
>
> It's a feature:
>
>       (format (if (and (>= (mod file-size 1.0) 0.05)
>                        (< (mod file-size 1.0) 0.95))
>                 "%.1f%s%s"
>               "%.0f%s%s")

Why is it a feature to waste those two perfect good characters on such
irrelevant details?


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]