[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

*To*: "n8vem...@googlegroups.com" <n8vem...@googlegroups.com>*Subject*: RE: [N8VEM-S100:6691] CP/M Mbasic 5.21*From*: Crusty OMO <crus...@hotmail.com>*Date*: Mon, 6 Apr 2015 20:16:30 -0400*Authentication-results*: gmr-mx.google.com; spf=pass (google.com: domain of crus...@hotmail.com designates 65.55.34.146 as permitted sender) smtp.mail=crus...@hotmail.com*Importance*: Normal*In-reply-to*: <40aa3394-1143-4cc5-97e7-9b7647ea299f@googlegroups.com>*References*: <40aa3394-1143-4cc5-97e7-9b7647ea299f@googlegroups.com>

Todd,
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... Cheers, Josh Date: Mon, 6 Apr 2015 12:24:23 -0700 From: litte...@gmail.com To: n8vem...@googlegroups.com 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 runs... 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 WBOOT a>MBASIC BASIC-80 Rev. 5.21 [CP/M Version] Copyright 1977-1981 (C) by Microsoft Created: 28-Jul-81 31800 Bytes free Ok E=1 Ok PRINT 4 * E -2.41704E-35 Ok Z=10 Ok PRINT 4 * Z -2.41704E-34 Ok 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. |

**Follow-Ups**:**Re: [N8VEM-S100:6702] CP/M Mbasic 5.21***From:*norwe...@aol.com

**RE: [N8VEM-S100:6702] CP/M Mbasic 5.21***From:*"lcyoung" <lcy...@bellsouth.net>

**References**:**CP/M Mbasic 5.21***From:*Todd Miller <litte...@gmail.com>

- Prev by Date:
**Re: [N8VEM-S100:6699] CP/M Mbasic 5.21** - Next by Date:
**Re: [N8VEM-S100:6702] CP/M Mbasic 5.21** - Previous by thread:
**Re: [N8VEM-S100:6691] CP/M Mbasic 5.21** - Next by thread:
**Re: [N8VEM-S100:6702] CP/M Mbasic 5.21** - Index(es):