Strange integer behaviour

Anything Sinclair ZX Basic related; history, development, tips - differences between BASIC on the ZX80 and ZX81
Moggy
Posts: 3267
Joined: Wed Jun 18, 2008 2:00 pm

Re: Strange integer behaviour

Post by Moggy »

Here are two programs which show how the 8 digit limit can be circumvented using strings.

One simply prints PI to 8192 places (eventually) the other calculates then prints numbers to high powers, a fast emulator is useful here.

An examination of the code may be useful to you.
Attachments
PI8192.P
(2.21 KiB) Downloaded 19 times
HIPOWERS.P
(1.48 KiB) Downloaded 15 times
my216
Posts: 4
Joined: Sun Mar 17, 2024 9:07 pm

Re: Strange integer behaviour

Post by my216 »

Thank you. I'll take a look at those programs.
Post Reply