That is really weird. I get the same results here.
Funny thing is when I do a
PRINT E * 4
I get 4
but when I do
PRINT 4 * E
I get the same floating point number you do.... Hmmm
I wonder if it has to do with the type of variable? Could it be assuming that 4 is an integer and E is a floating point variable? But when you do E * 4, it assumes 4 is now a floating point constant?
Either way, looks like this 5.21 BASIC has a bug...
Date: Mon, 6 Apr 2015 12:24:23 -0700
Subject: [N8VEM-S100:6691] CP/M Mbasic 5.21
I've been messing around with Josh's 8080 board.
I XMODEM'd a basic program written in NorthStar Basic
over to Josh's board to play with. After making a few
corrections for the different versions of Basic. It almost
It's been awhile since I've wrote a basic program, but I
just don't understand why the CP/M ver of basic does this;
ALTAIR/IMSAI CPU CARD. 61K CP/M 2.2
BASIC-80 Rev. 5.21
Copyright 1977-1981 (C) by Microsoft
31800 Bytes free
PRINT 4 * E
PRINT 4 * Z
In my mind 4 * E should equal one
and 7 * Z should equal ten.
Why am I getting -2.xxxxEyy ?????
You received this message because you are subscribed to the Google Groups "N8VEM-S100" group.
To unsubscribe from this group and stop receiving emails from it, send an email to n8vem-s100+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.