In C it can be simply done with a cast from float * to char *, but I don't think VB.NET works this way. Do you have an easy way of converting floating(single/double) values to its "byte" form stored?
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
You can convert many of the intrinsic data types to and from an array of bytes and the actual type using the System.BitConverter class. Specifically look at the GetBytes method, and then the ToDouble and ToSingle methods to convert the byte array back to the appropriate type.
MEMBER FEEDBACK TO THIS ASK THE EXPERT Q&A:
This is a very clean and helpful answer. It saved me lots of time. Thanks.
Do you have comments on this Ask the Expert question and response? Let us know.
Dig Deeper on Win Development Resources
Related Q&A from Mark Belles
This expert response shows how to access VB .NET Windows control on the client side.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.