Hi All
Just to update any future users searching for this issue
I managed to solve it.
its a single precision floating point
IEEE 754
Here is the code i used
this: &433d7bc4
Translates to 189.48346
Private Function ConvertHexToSingle(hexVal As String) As [Single]
Try
Dim i As Integer = 0, j As Integer = 0
Dim bArray As Byte() = New Byte(3) {}
For i = 0 To hexVal.Length - 1 Step 2
bArray(j) = [Byte].Parse(hexVal(i).ToString() + hexVal(i + 1).ToString(), System.Globalization.NumberStyles.HexNumber)
j += 1
Next
Array.Reverse(bArray)
Dim s As [Single] = BitConverter.ToSingle(bArray, 0)
Return (s)
Catch ex As Exception
Throw New FormatException("The supplied hex value is either empty or in an incorrect format. Use the " + "following format: 00000000", ex)
End Try
End Function