G
Guest
Hi all,
I hope you don't mind me lauching straight into a question. Thanks for a
great forum, I have picked up a few good tips here!
Anyhow, here is my question:-
I am loading information from an array of bytes and then immediately storing
the information. In this information are bytes sequences representing Single
(4 bytes) and Double (8 byte) values. I wish to avoid calculating the
floating point numbers only to immediately save them and not use them.
For instance I know the four hexidecimal bytes C2 ED 40 00 represents
-118.625 but I just want to save the bytes into a double field. Now when I
try to use the CDbl("&HC2ED4000") functionI only get the number as an integer
rather than the floating point. Can anybody help with a sugestion?
Also in the future I thiink that I'll have to reverse the situation and
convert a double to a string of hexideciamal numbers. I am sure the internals
of Access must do this stuff all the time but I am just ignorant of how to
access the functionality.
Any help would be much appreciated,
Cheers and Happy Presidents day to our US buddies!,
Andrew
Australia
I hope you don't mind me lauching straight into a question. Thanks for a
great forum, I have picked up a few good tips here!

Anyhow, here is my question:-
I am loading information from an array of bytes and then immediately storing
the information. In this information are bytes sequences representing Single
(4 bytes) and Double (8 byte) values. I wish to avoid calculating the
floating point numbers only to immediately save them and not use them.
For instance I know the four hexidecimal bytes C2 ED 40 00 represents
-118.625 but I just want to save the bytes into a double field. Now when I
try to use the CDbl("&HC2ED4000") functionI only get the number as an integer
rather than the floating point. Can anybody help with a sugestion?
Also in the future I thiink that I'll have to reverse the situation and
convert a double to a string of hexideciamal numbers. I am sure the internals
of Access must do this stuff all the time but I am just ignorant of how to
access the functionality.
Any help would be much appreciated,
Cheers and Happy Presidents day to our US buddies!,
Andrew
Australia