Shop OBEX P1 Docs P2 Docs Learn Events
convert varible to decimal — Parallax Forums

convert varible to decimal

HoffaHoffa Posts: 46
edited 2006-09-07 08:54 in BASIC Stamp
Hi

How do I do convert a variable to a decimal

I want to do something like this:

var2 = DEC var1

I want to do this in basic stamp 2.

I saw that one can use the DEC command in debug, but it doesn't work as I want it.

Comments

  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-09-07 08:54
    Hoffa -

    The PBASIC Language only support integers. The only time you can actaully apply a decimal point (if that's your goal) is when using something like SEROUT. See the SEROUT command for more details.

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->
Sign In or Register to comment.