[futurebasic] Re: [FB] Re: [XFB] a curiosity with containers

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2000 : Group Archive : Group : All Groups

From: Heather Donahue <HeatherDonahue@...>
Date: Wed, 20 Sep 2000 21:46:59 -0700
At 11:22 AM +1000 on 9/21/00, David Cottrell wrote:

>I cant say anything about the accuracy of the result, but this 
>program in FBII prints a result
>
>WINDOW #1,"Output",(100,100)-(400,400)
>PRINT 6^6^6
>STOP
>
>It's output is something like 1.03*10^28
>
>Same program in FB^3 - gives INF.
>
>Not that big really...

It makes a difference how it's formatted.

I couldn't get your example to run properly as is.  If I left it:

PRINT 6^6^6

I got this:

Error: A Numeric or String value expected here...
in file Temp Project at line 23 in Main Program
*PRINT 6^6*^6

This version output the same answer as the FBII version:
WINDOW #1,"Output",(100,100)-(400,400)
PRINT (6^6)^6
STOP

This version output the answer INF:
WINDOW #1,"Output",(100,100)-(400,400)
PRINT 6^(6^6)
STOP

-- 
Heather Donahue
PGP Public Key at: 
http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=HeatherDonahue@...
See X-PGP-fingerprint in headers.