Re: integer or float?

Ray Andrews <[email protected]> Thu, 2 Oct 2025 10:25:05 -0700
Newsgroups gmane.comp.shells.zsh.user
Message-ID <[email protected]>

On 2025-10-02 08:39, Lawrence Velázquez wrote:
> It's not a mistake.
> The third expression has an integer value and is displayed as such.
Agreed, I meant the lack of trailing zeros on the others.
>> .. note that above zsh actually 'fixes it for you': '.5' becomes
>> '0.5'.  So we have rigor with leading zeros but not trailing zeros.
> Please stop using terms like "rigor" and "correct" to express your
> personal aesthetic preferences.
It's more than my personal taste Lawrence, any mathematician will back 
me up on this. Granted it's not an absolute error just as '.5' is not an 
absolute error, but neither is it best practice.  No doubt that's why 
zsh fixes it in the one case.  Anyway I don't want to belabor this it's 
a very small issue.