Hi All,
I am trying to read a double or float value from bytes 3 to 6 in a 15 byte array.
The string from bc.HexFromBytes = "AA101DFCA43C0000000048006000A5"
How do I convert to a number and format in text?
Thanks
I am trying to read a double or float value from bytes 3 to 6 in a 15 byte array.
The string from bc.HexFromBytes = "AA101DFCA43C0000000048006000A5"
B4X:
Sub astream2_newData (Buffer() As Byte)
'
Dim a As String = bc.HexFromBytes(Buffer) 'contents of buffer in Hex
Log("buffer len = ",Buffer.Length) 'len of buffer = 15
Log (bc.SubString2(a,4,12)) 'get bytes 3 thru 6 from string = 1DFCA43C
How do I convert to a number and format in text?
Thanks