Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 04:40 28 Nov 2024 Privacy Policy
Jump to

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.

Forum Index : Microcontroller and PC projects : Variables and bin/hex

Author Message
Blackened

Regular Member

Joined: 11/08/2012
Location: Australia
Posts: 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: Australia
Posts: 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: Australia
Posts: 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



Dennis
Keep 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: Thailand
Posts: 2209
Posted: 08:58pm 18 Jul 2013
Copy link to clipboard 
Print this post

Or is it -1?


Microblocks. Build with logic.
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024