Good day all,

In a serial string I receive a 16 bit value split into MSB and LSB in hex,
for example 15000 (3A 98) is sent as 2 bytes containing decimal values  of
3A and 98.

To convert that to decimal, I have to convert each to hex strings, join
them, add &H to it and then convert "&H3A98" to decimal. 

Maybe there is an easier way? 

Thanks! 





--
View this message in context: 
http://gambas.8142.n7.nabble.com/16-bit-value-in-hex-with-MSB-and-LSB-tp59029.html
Sent from the gambas-user mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to