how to convert byte array to float?

  • Thread starter Thread starter assaf
  • Start date Start date
A

assaf

hi all

i am looking for something like:
BitConvertor.ToFloat();

but all i can find is:
BitConvertor.ToDouble();

how can i convert my byte array to float?


assaf
 
assaf said:
i am looking for something like:
BitConvertor.ToFloat();

but all i can find is:
BitConvertor.ToDouble();

how can i convert my byte array to float?

Using BitConverter.ToSingle. (float is just a shorthand for
System.Single.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top