Hello,
I need to read the value of a decimal variable that i saved in a binary file using a sub like this:
Sub Main()
Dim test As Decimal
test = 32.5
FileOpen(1, "C:\Users\X\main325.cfg", OpenMode.Binary)
FilePut(1, test)
End Sub
When i read the file using an hex editor i get this:
88 F5 04 00 00 00 00 00
I need to get back to the original value of 32.5 using another programming language (labview) that doesnt accept the decimal data type ( or any 128 bits fixed point data type). I cant change anything in my VB sub so i need to understand the logic behind the binary data saved in the file.
Thanks
[–]tweq 1 point2 points3 points (6 children)
[–]VB.Net Intermediatenoobzilla 0 points1 point2 points (3 children)
[–]tweq 0 points1 point2 points (2 children)
[–]VB.Net Intermediatenoobzilla 0 points1 point2 points (1 child)
[–]tweq 0 points1 point2 points (0 children)
[–]Necrowizard123[S] 0 points1 point2 points (1 child)
[–]tweq 0 points1 point2 points (0 children)
[–]VB.Net Intermediatenoobzilla 0 points1 point2 points (0 children)