BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

what is the problem

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Thomas Willms
Guest





PostPosted: Mon Feb 13, 2006 10:03 am    Post subject: what is the problem Reply with quote



how to count with a loop, (for i:=1 to x, repeat or whatever) to very high
numbers (> 1E15) ?
proposed methods (posted before, answer on 9.2) don't work): Comp and INT64
don't work.

Thanks
Back to top
Nicholas Sherlock
Guest





PostPosted: Mon Feb 13, 2006 10:03 am    Post subject: Re: what is the problem Reply with quote



Thomas Willms wrote:
Quote:
how to count with a loop, (for i:=1 to x, repeat or whatever) to very high
numbers (> 1E15) ?
proposed methods (posted before, answer on 9.2) don't work): Comp and INT64
don't work.

var i:int64;

i:=0;
repeat
do_stuff;
until i>x;


Cheers,
Nicholas Sherlock

--
http://www.sherlocksoftware.org
Back to top
Nicholas Sherlock
Guest





PostPosted: Mon Feb 13, 2006 11:03 am    Post subject: Re: what is the problem Reply with quote



Nicholas Sherlock wrote:
Quote:
var i:int64;

i:=0;
repeat
do_stuff;
until i>x;

Sorry, I missed the all important inc(i) line after do_stuff.

Cheers,
Nicholas Sherlock


--
http://www.sherlocksoftware.org
Back to top
Brian Cryer
Guest





PostPosted: Mon Feb 13, 2006 6:03 pm    Post subject: Re: what is the problem Reply with quote

"Thomas Willms" <th.willms (AT) wanadoo (DOT) fr> wrote in message
news:43f053e0 (AT) newsgroups (DOT) borland.com...
Quote:
how to count with a loop, (for i:=1 to x, repeat or whatever) to very high
numbers (> 1E15) ?
proposed methods (posted before, answer on 9.2) don't work): Comp and
INT64 don't work.

Thanks

Thomas, it would be easier for others to follow the thread if this had been
posted as a reply in the previous thread that you had started. By posting
this as a new question most people will not be aware of what went before.
--
Brian Cryer
www.cryer.co.uk/brian
Back to top
Loren Pechtel
Guest





PostPosted: Tue Feb 14, 2006 3:03 am    Post subject: Re: what is the problem Reply with quote

On Mon, 13 Feb 2006 10:43:16 +0100, "Thomas Willms"
<th.willms (AT) wanadoo (DOT) fr> wrote:

Quote:
how to count with a loop, (for i:=1 to x, repeat or whatever) to very high
numbers (> 1E15) ?
proposed methods (posted before, answer on 9.2) don't work): Comp and INT64
don't work.

No matter what the format you will eventually find a point where it
simply gives an overflow. This is absolutely inherent in the nature
of the storage formats and is *NOT* a bug.

For an int64 your machine will probably die first, though.
Back to top
Patrick Quinn
Guest





PostPosted: Wed Feb 15, 2006 1:03 am    Post subject: Re: what is the problem Reply with quote

Thomas Willms wrote:
Quote:
how to count with a loop, (for i:=1 to x, repeat or whatever) to very high
numbers (> 1E15) ?
proposed methods (posted before, answer on 9.2) don't work): Comp and INT64
don't work.

Thanks


Thomas, you keep starting new threads about same thing.

Check out the help files of whatever program you use to access this
newsgroup, and read about how to WRITE new messages and how to REPLY to
them. Look up THREADS. You will get much more help from people if you do
this correctly.
Regards

Patrick

By the way, have you tried breaking number down into two bits e.g.:
for i := 0 to iii do
for j := 0 to jjj do
Something;
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.