Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
Blackened Regular Member Joined: 11/08/2012 Location: AustraliaPosts: 66
Posted: 01:03am 18 Jul 2013
Copy link to clipboard
Print this post
Hey all, I'm confused.
On page 14 of the MMBASIC 4.4 manual there is a programming example:
a = &b11101001
I thought variables could only contain strings or floating point numbers? Can the above example be used for hex too?
Thanks
Blackened Regular Member Joined: 11/08/2012 Location: AustraliaPosts: 66
Posted: 01:16am 18 Jul 2013
Copy link to clipboard
Print this post
Never mind. I think I got it straight. My IT course was a looooong time ago LOL Maybe I should hold off for a few more minutes before asking questions of the group. Let the grey matter percolate out its knowledge
MM_Wombat Senior Member Joined: 12/12/2011 Location: AustraliaPosts: 139
Posted: 03:05am 18 Jul 2013
Copy link to clipboard
Print this post
Hi,
Just in case it hasn't percolated....
a=&HFF ' 255 decimal
DennisKeep plugging away, it is fun learning
But can be expensive (if you keep blowing things up).
Maximite, ColourMaximite, MM+
MicroBlocks Guru Joined: 12/05/2012 Location: ThailandPosts: 2209