[Gambas-user] does exit a instruction to convert hexadecimal to decimal?

Manu mtitouinfo at yahoo.fr
Thu Sep 28 15:08:21 CEST 2023


hello, remember this shortcut:
gbs3 -e 'dim a as byte=255: print a, hex(a), bin(a), oct(a), &hff, 
&x11111111, &o377'
255    FF    11111111    377    255    255    255

Le 28/09/2023 à 00:13, vuott--- via User a écrit :
 > the "&" character alone is sufficient:
 >
 >     num = Val("&" & mystring)

Le 28/09/2023 à 00:13, vuott--- via User a écrit :
> the "&" character alone is sufficient:
> 
>     num = Val("&" & mystring)
> 



More information about the User mailing list