Hi everybody,
I am noticing a strange (but maybe I am not using it in the right way) behaviour of method CLng().
If I write:
the result is:![]()
Dim lngNum As Long lngNum = CLng("400118E0") MsgBox lngNum
Cattura.PNG
wheres if I write
the result is:![]()
Dim lngNum As Long lngNum = CLng("40011880") MsgBox lngNum
Cattura.PNG
Why is char 'E' not recognized and displayed on the message box?
I need to convert 32-bit address (to be used with .bin/.hex file) from string to hex value(i.e. input. "400118E0", output: 0x400118E0).
Thank you in advance,
Ziomocci
Bookmarks