HTBasic Help
×
Menu
Index

DVAL Example

10    CLEAR SCREEN
20    PRINT "DVAL conversion test."
30    PRINT
40    PRINT DVAL("00000000000000000000000001100010",2)! From Binary to Decimal.
50    PRINT DVAL("142",8)  ! From Octal to Decimal.
60    PRINT DVAL("98",10)  ! From base 10 to Decimal.
70    PRINT DVAL("62",16)  ! From Hex to Decimal.
80    PRINT
90    PRINT "See DVAL$.prg as well."
100   END