Shop OBEX P1 Docs P2 Docs Learn Events
Decimal Operation — Parallax Forums

Decimal Operation

ArchiverArchiver Posts: 46,084
edited 2003-03-12 14:06 in General Discussion
Hi Folks,

here is a question on how to handle numbers: I have three 7-segment displays
with three digits each. On those I want to display numbers that are stored
in Byte variables in my stamp program. As I have to adress each digit
seperately I am trying to figure out how I can easily cut my numbers into
digits and then hansd them over to the MAX for the displays.

I hope this question was not too confusing...

Thanx a lot,

Uli


[noparse][[/noparse]Non-text portions of this message have been removed]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-03-12 13:51
    Hi Uli. Look at the DIG operator in the manual or online help.

    Al Williams
    AWC
    * Limit monitor 8 channels at once
    http://www.al-williams.com/awce/pak10.htm



    >
    Original Message
    > From: ulibasic [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=srKridpaBWXupDJ987LYtFiXJDayBgkA7HhIVmrmCcxiG1_q6TiYmIi39wpTl4DpnPIRSzHQWJ6sMIs2C7RngQqKxjNQJ2yS4w]ulibasic@r...[/url
    > Sent: Wednesday, March 12, 2003 7:37 AM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Decimal Operation
    >
    >
    > Hi Folks,
    >
    > here is a question on how to handle numbers: I have three
    > 7-segment displays with three digits each. On those I want to
    > display numbers that are stored in Byte variables in my stamp
    > program. As I have to adress each digit seperately I am
    > trying to figure out how I can easily cut my numbers into
    > digits and then hansd them over to the MAX for the displays.
    >
    > I hope this question was not too confusing...
    >
    > Thanx a lot,
    >
    > Uli
    >
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the
    > Subject and Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to
    > http://docs.yahoo.com/info/terms/
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2003-03-12 14:06
    It's very easy with the DIG operator. It's covered in the manual.

    -- Jon Williams
    -- Parallax

    In a message dated 3/12/2003 7:43:41 AM Central Standard Time,
    ulibasic@r... writes:

    > Hi Folks,
    >
    > here is a question on how to handle numbers: I have three 7-segment
    > displays
    > with three digits each. On those I want to display numbers that are stored
    > in Byte variables in my stamp program. As I have to adress each digit
    > seperately I am trying to figure out how I can easily cut my numbers into
    > digits and then hansd them over to the MAX for the displays.
    >
    > I hope this question was not too confusing...
    >
    > Thanx a lot,
    >
    > Uli



    [noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.