[ad_1]
I’m trying to convert 64bit decimal to hex but I get a wrong result
Public Function DecToBinary(dec As Double) As String
DecToBinary= Hex(dec)
End function
For dec=3689348814742970688 I get 0x3333333333436200 , I should get 0x3333333333436140
I will use the hex to get the binary data cause I couldn’t find another way to get a string with the bits.
In the end 3689348814742970688 will become a string with bits
“0011001100110011001100110011001100110011010000110110000101000000”
Thanks in advance
[ad_2]