PC Review


Reply
Thread Tools Rate Thread

converting 4bytes(32bits) to float

 
 
Yasin Cepeci
Guest
Posts: n/a
 
      23rd Apr 2007
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





 
Reply With Quote
 
 
 
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      23rd Apr 2007
Yasin Cepeci <(E-Mail Removed)> wrote:
> 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.

--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
help float converting Yasin Cepeci Microsoft C# .NET 4 23rd Apr 2007 09:26 PM
Converting byte[] to float ... Jamie Risk Microsoft C# .NET 1 23rd Nov 2006 04:37 PM
Converting a float to a string eric.goforth@gmail.com Microsoft C# .NET 5 22nd Mar 2006 02:16 AM
Converting float in C to C# Meya-awe Microsoft C# .NET 1 30th Sep 2005 08:52 AM
converting byte to float Aykut Microsoft C# .NET 3 16th Jul 2005 07:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:28 AM.