Page 2 of 2

Re: 0.25 - 0.25 <> 0

Posted: Thu Mar 09, 2017 12:33 am
by Shaun_B
dr beep wrote: Wed Mar 01, 2017 10:25 am And as for keeping the quarters on display on the ZX80:
LET M=INT (T/4)
LET Q=(T-M*4)*2+1
PRINT M;".";"00255075"(Q TO Q+1)
If the number goes negative, you will need a condition to check and reverse the string or something like that.

Regards,

Shaun.

Re: 0.25 - 0.25 <> 0

Posted: Thu Mar 09, 2017 5:18 pm
by dr beep
Shaun,

The test on M going under 0 must be done when money is decreased, not at the display.