convert varible to decimal
Hoffa
Posts: 46
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.
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
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 -->