B4J Question want to get the high byte and the low byte of an int in two seprate byte ?

Pietro Pancino

Member
Licensed User
Longtime User
Hi all,
I'm sure it's very simple but I'stuck!

Is there a way to simply copy the hight byte of a short in a byte and the low byte o a short into an another byte.
short = 0xff04
---> hbyte = 0xff
---> lbyte = 0x04

Pietro
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…