zsh-users
 help / color / mirror / code / Atom feed
* strange arithmetic
@ 1997-11-28 19:09 Louis-David Mitterrand
  1997-11-28 19:37 ` Andrew Main
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Louis-David Mitterrand @ 1997-11-28 19:09 UTC (permalink / raw)
  To: zsh-users

(using 3.0.5)

% i=0;while [[ $[++i] < 900 ]];do;echo $i;done
% 1
% 2
[...]
% 90

90 ?? I asked for 900 and it stops at 90. On the other hand the
following:

% i=0;while ! [[ $[++i] = 900 ]];do;echo $i;done
% 1
% 2
[...]
% 899

Is this normal?

-- 

     Louis-David Mitterrand
     http://www.aparima.com
     mito@aparima.com


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1997-11-29 14:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-11-28 19:09 strange arithmetic Louis-David Mitterrand
1997-11-28 19:37 ` Andrew Main
1997-11-28 20:16 ` Alain Caron
1997-11-28 20:30   ` Louis-David Mitterrand
1997-11-29  2:04     ` Dan Nelson
1997-11-29 14:40       ` Louis-David Mitterrand
1997-11-29 11:44 ` Christopher Croughton

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).