TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ALL
from: TIM HUTZLER
date: 1996-12-01 12:26:00
subject: Overflow on PRINT

I have been trying to isolate a tricky bug that causes an 'overflow'
error on some number types. There is no 'overflow', the error is
incorrect. So, I am lost as to what the real error is.
In my latest instance I have noticed that the error occurs in a PRINT
statement where I call a function previous to that. I don't know why
this subroutine causes the problem. And I don't have this problem in
other programs where I use this function.
All I know is that if I bypass the function, the error does not
occur. If I cut it back in, the error comes back. I wonder if I have
a stack overflow problem. I tried PRINT FRE(-2) and I get the
overflow error!
One thing - if I simply make "PRINT x" into "PRINT STR$(x)"; it
works! HEX$(x) also works. But just printing the number, it
fails with the indicated overflow error.
--- Maximus/2 3.01
---------------
* Origin: Madman BBS * Chico, California * 916-893-8079 * (1:119/88)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.