How do I convert Hex to Decimal in smartBASIC?

Answer

You can use the SPRINT function to convert your hex to decimal. Please review page 69 of the smartBASIC Core Manual for a description of how to use the SPRINT function. As an example, to convert 0004D2 to its decimal value of 1234, your code would look like this: DIM a, s$ : a=0x0004D2 SPRINT #s$,INTEGER.D'a print s$