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: Eli Zaretskii
Subject: Re: master 2b97e83cc1 2/2: Fix off-by-one file size formatting in ls-lisp
Date: Sun, 13 Feb 2022 08:24:53 +0200

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: emacs-devel@gnu.org,  larsi@gnus.org
> Date: Sat, 12 Feb 2022 15:32:16 -0500
> 
> >> >       (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
> >
> > It's a feature by definition: there's code that intentionally does
> > that.
> >
> >> to waste those two perfect good characters on such irrelevant
> >> details?
> >
> > A feature doesn't have to be liked to be a feature.
> 
> No, but if we don't like it we can remove it.
> Do you find this feature useful?  If so, can you give me an idea what
> you like about it?

AFAIU, it attempts to show more significant digits when the value is
near a round power.



reply via email to

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