converting 4bytes(32bits) to float

Y

Yasin Cepeci

How can I turn the converting proccess below reverse. in other words convert
to float from hex or binary(32bit).
xxx.xxxxxxF--->10101010101011111101101010101010;
I wantto convert my 32 bits to float value:)
 
J

Jon Skeet [C# MVP]

Yasin Cepeci said:
How can I turn the converting proccess below reverse. in other words convert
to float from hex or binary(32bit).
xxx.xxxxxxF--->10101010101011111101101010101010;
I wantto convert my 32 bits to float value:)

Have a look at BitConverter.ToSingle.
 

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

Top