Shop OBEX P1 Docs P2 Docs Learn Events
Collecting numbers — Parallax Forums

Collecting numbers

MoskogMoskog Posts: 554
edited 2010-07-16 16:21 in BASIC Stamp
Hello again.

I have this simple problem I can't figure out:

How to·let two·Bytes·be a Word,·like this: 40 and 25 to be 4025.

·

Comments

  • ercoerco Posts: 20,256
    edited 2010-07-16 05:57
    B0=25
    B1=40
    W1=B1*100+B0

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·"If you build it, they will come."
  • MoskogMoskog Posts: 554
    edited 2010-07-16 09:52
    Shame on me.. so easy, so simple.
    Thanks, erco. Give the twins an icecream from me!
  • ercoerco Posts: 20,256
    edited 2010-07-16 16:21
    Happy to help.

    I thought it was a trick question!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·"If you build it, they will come."
Sign In or Register to comment.