yay v6.786.r0.gd442af9
Packages with small decimal popularity are shown in scientific/exponent notation
Output:
~ ❯❯❯ pac -Si chrome-shutdown-hook
:: Querying AUR...
Repository : aur
Name : chrome-shutdown-hook
Version : 1.3.2-1
Description : Gently shutdown Chrome/Chromium on logout from Gnome Shell.
URL : https://www.google.com/chrome/index.html
Licenses : GPL
Provides :
Depends On : procps-ng python2 gnome-python
Make Deps :
Check Deps :
Optional Deps : gnome-tweak-tool
Conflicts With :
Maintainer : Terence
Votes : 6
Popularity : 9e-06
I've been trying to figure out how to address this issue for 5 minutes at least since I do not see any problem with the way the output is displayed.
Could you explain how this is an issue?
They probably wanted it printed as 0.000009
fmt.Printf("%s%15s %f\n", bold("Popularity"), bold(":"), a.Popularity)
That works.
Or just do it like a physicist and write 0 beyond a certain threshold.
Yes, sure, I understood, I just guess having a popularity of 9e-06 or 0.000009 doesn't make much difference, specially since we trim to 0.00% on yay -Y if I'm not wrong.
EDIT: @AladW I've seen values in the order of millions being approximated to 0 in semiconductor physics, I would guess the rating would go either 0 or max if we were to follow some EE physicist logic \s
If this makes difference to some people, I don't really care, it can be displayed as 0.000009.
just thought it was funny
thank you very much! sorry about the ambiguity
Most helpful comment
Or just do it like a physicist and write 0 beyond a certain threshold.