Okay, I will answer my own post. I was able to use the CopyMemory API . this basically made this just a 4-line project:
Dim DestArray(0 To 7) As Byte
Dim varDbl As Double
varDbl = CDbl(txtNumber. Text)
CopyMemory DestArray(0), varDbl, 8 ' The "8" represents the number of bytes to copy....
User Profile
Collapse
-
I need a 64-bit representation of a double in VB
I need to convert a VB6 double into a 64-bit representation of 1's and 0's. I probably could deconstruct a double into its bits by following IEEE 754, but that seem like a brute force method. Since VB probably stores a double in this format, is there any simple way to read out a memory location in bits (or bytes)? Any other ideas?
In actuality, I really need the representation in 4 Unsigned Integers (which VB does not support),...
No activity results to display
Show More
Leave a comment: