[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [N8VEM-S100:6692] Re: CP/M Mbasic 5.21
First try gave me -2.417
Second try, answer was 40.
It doesn't matter if its 'RAN' inline or at the prompt;
I type this in;
The answer should be 'one' , 'four' not -3 , -2.14E
At first I thought, order of operations or RPN, but it
doesn't change the result as seen above.
I can't force it, with parenthesis, to multiply E four
times and then subtract 3 to get my answer.
----- Original Message -----
From: "nbreeden" <nbre...@me.com>
Sent: Monday, April 6, 2015 3:23:47 PM GMT -06:00 US/Canada Central
Subject: [N8VEM-S100:6692] Re: CP/M Mbasic 5.21
X=4 * Z
if you get 40 then the issue most likely has to do with printing an intermediate result via the command line; I vaguely recall a bug like this in a BASIC interpreter form 40+ years ago though I don't recall the details.
Then try this:
20 PRINT Z*4
If this also work then the issue is pretty much isolated to how the command line is being handled.
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 .