Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: integer or float?





On 2025-10-02 08:54, Lawrence Velázquez wrote:
https://0.30000000000000004.com/

Again, if you care about the visible representation of a number
(this includes inspecting variable expansions), you should be using
formatted output, not expecting the shell to read your mind.
Yeah, fair enough, I concede the point.  we see the internal representation there, I suppose it could be a design decision to give a more readable output in all cases, but as you say, that's available via printf so there really isn't a problem.  Indeed I do have a bias in that I don't like absolute values displayed as tho they were measured values with some level of precision when they ain't.  I yield.






Messages sorted by: Reverse Date, Date, Thread, Author