From: Ada novice <ycalleecharan@gmx.com>
Subject: Re: loop problem with exit condition
Date: Sun, 26 Sep 2010 03:19:54 -0700 (PDT)
Date: 2010-09-26T03:19:54-07:00 [thread overview]
Message-ID: <913ad41d-14f1-487e-bad6-880f9d5d8303@z28g2000yqh.googlegroups.com> (raw)
In-Reply-To: 1spdu1yb2khd0$.rk8xvebgn574.dlg@40tude.net
Thanks a lot. You have provided me with a very clean code that does
its job well.
As I was working with Long_Float precision I was tempted to believe
that floating-point
accumulation errors wouldn't have such an adverse effect. Apart that,
I wasn't thinking very
much of using the For loop instead with its unity increment (I come
from a Matlab background).
When writing a For loop, I read that it's good practice to put e.g.
For I in Range 1..300 as
just putting For I in 1..300 will not tell the compiler what kind of
number representation it must
have for the numbers 1 and 300.
Thanks again.
YC
next prev parent reply other threads:[~2010-09-26 10:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-26 8:14 loop problem with exit condition Ada novice
2010-09-26 8:16 ` Ada novice
2010-09-26 9:10 ` Dmitry A. Kazakov
2010-09-26 10:19 ` Ada novice [this message]
2010-10-26 2:59 ` Yannick Duchêne (Hibou57)
2010-10-26 7:02 ` Niklas Holsti
2010-10-26 8:24 ` Dmitry A. Kazakov
2010-10-26 12:38 ` Brian Drummond
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox