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

Brian G brian at westwoodsvcs.com
Wed Sep 27 22:35:13 CEST 2023


You cal also use num = VAL("&H0"&mystring)

On 9/27/23 12:29, roberto.premoli at tiscali.it wrote:
> Hello,
> I use hex$ to convert decimal to hexadecimal, and it works
>
> But I ave also the opposite need, to convert a HEXacecimal value into 
> a DECimal value but it seems does not exist a "DEC$"
>
> I can write my own routine that elaborate the string (i.e. "EA") and 
> return the equivalent inter decimal 234, but it will be better to use 
> the gambas instruction, , if it exist.
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----

-- 
~~~~ Brian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x78BFB26402F48419.asc
Type: application/pgp-keys
Size: 2428 bytes
Desc: OpenPGP public key
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230927/12a95acf/attachment-0001.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 665 bytes
Desc: OpenPGP digital signature
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230927/12a95acf/attachment-0001.sig>


More information about the User mailing list