The Maximite


Author Message
BobDevries

Senior Member

Joined: 08/06/2011
Location: Australia
Posts: 266
Posted: 12:28am 10 Jun 2011      

Hmm, I'm not sure what the protocol is for posting MMBASIC programmes here. Do I just include them in-line? I've just done a conversion from QBasic of an analog clock, and in the process discovered what may be a bug.

The unary negate does not appear to work. If I have this in my code:

Hr = -COS(angle)

the result is always 0 (actually -0)

If I change it to:

Hr = 0 - COS(angle)

it works as expected.

Regards,

Bob Devries
Dalby, QLD, Australia