* rounding weirdness
@ 2008-11-17 2:58 Atom Smasher
2008-11-17 3:04 ` William G. Scott
2008-11-17 3:21 ` William G. Scott
0 siblings, 2 replies; 3+ messages in thread
From: Atom Smasher @ 2008-11-17 2:58 UTC (permalink / raw)
To: ZSH Users
i'm seeing this on several boxes:
% echo $[13.50 + 6.99]
20.490000000000002
Linux 2.6.26.6 zsh=4.3.4
FreeBSD 4.7 zsh=4.2.1
FreeBSD 6.2 zsh=4.3.6
i don't recall seeing that type of error before. is that normal?
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"Patriotism is the willingness to kill
and be killed for trivial reasons."
-- Bertrand Russell
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: rounding weirdness
2008-11-17 2:58 rounding weirdness Atom Smasher
@ 2008-11-17 3:04 ` William G. Scott
2008-11-17 3:21 ` William G. Scott
1 sibling, 0 replies; 3+ messages in thread
From: William G. Scott @ 2008-11-17 3:04 UTC (permalink / raw)
To: Atom Smasher; +Cc: ZSH Users
There are 10 types of people in the world, those who think in binary,
and those who aren't human diodes.
On Nov 16, 2008, at 6:58 PM, Atom Smasher wrote:
> i'm seeing this on several boxes:
> % echo $[13.50 + 6.99]
> 20.490000000000002
>
> Linux 2.6.26.6 zsh=4.3.4
> FreeBSD 4.7 zsh=4.2.1
> FreeBSD 6.2 zsh=4.3.6
>
> i don't recall seeing that type of error before. is that normal?
>
>
> --
> ...atom
>
> ________________________
> http://atom.smasher.org/
> 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
> -------------------------------------------------
>
> "Patriotism is the willingness to kill
> and be killed for trivial reasons."
> -- Bertrand Russell
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: rounding weirdness
2008-11-17 2:58 rounding weirdness Atom Smasher
2008-11-17 3:04 ` William G. Scott
@ 2008-11-17 3:21 ` William G. Scott
1 sibling, 0 replies; 3+ messages in thread
From: William G. Scott @ 2008-11-17 3:21 UTC (permalink / raw)
To: Atom Smasher; +Cc: ZSH Users
On the other hand, ...
zsh-% echo $[13.50 + 6.99]
20.490000000000002
zsh-% zcalc
1> 13.50 + 6.99
20.49
2>
On Nov 16, 2008, at 6:58 PM, Atom Smasher wrote:
> i'm seeing this on several boxes:
> % echo $[13.50 + 6.99]
> 20.490000000000002
>
> Linux 2.6.26.6 zsh=4.3.4
> FreeBSD 4.7 zsh=4.2.1
> FreeBSD 6.2 zsh=4.3.6
>
> i don't recall seeing that type of error before. is that normal?
>
>
> --
> ...atom
>
> ________________________
> http://atom.smasher.org/
> 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
> -------------------------------------------------
>
> "Patriotism is the willingness to kill
> and be killed for trivial reasons."
> -- Bertrand Russell
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-11-17 3:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-17 2:58 rounding weirdness Atom Smasher
2008-11-17 3:04 ` William G. Scott
2008-11-17 3:21 ` William G. Scott
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).