From recent commit in "comp/python":

> Add a percent-scaler program to adjust the percentage wrt if original is being scaled or not.
>
> HP [#EliteBook640G11] laptop has the BIOS option to charge battery only to 80% in order to increase battery life. When enabled, MS Windows 11 shows battery charge relative to that 80%. So 100% value is actually 80%.

That was due to ...

HP Elitebook 845 G8 - Can't limit battery to 80% charge, 20220925,
reply by Kyle N,
https://www.reddit.com/r/Hewlett_Packard/comments/xny44x/comment/ipvwud1/

#programming

... Posting here, made me edit the original commit message; 1-line code (percent * 80/100) is surrounded by 156 lines; due to ...
- control of display of floating point number;
- control of output verbosity;
- inverse operation (percent *100/80) #whyNot;
- checking the number of non-option inputs;
- concise error message than needless stack trace;
- certainly my propensity to be vertical-space extravagant.

#programming #softwareDevelopment