Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: IEEE floating number format
Replies: 7   Last Post: Oct 18, 2012 5:44 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Doug Schwarz

Posts: 1,384
Registered: 12/7/04
Re: IEEE floating number format
Posted: Oct 18, 2012 1:01 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

In article <901729a4-6de5-4700-b6a7-04501dbd15fe@googlegroups.com>,
engr.omarkhaliq@gmail.com wrote:

> On Thursday, October 18, 2012 3:14:18 PM UTC+2, engr.om...@gmail.com wrote:
> > Hi. Could anyone tell how floating number change into IEEE format.
> >
> > like 2.323, 8.9, -0.22 to equivalent 32-bit IEEE format. Thanks.

> this is not I want. I want binary equivalent.
> for example,
> 2.323 => 0100000010001110000 (something like this) but in 32-bit precision. I
> hope know you will understand my problem. Thanks

Do you mean something like this?

>> dec2bin(typecast(single(2.323),'uint32'),32)
ans =

Doug Schwarz
Make obvious changes to get real email address.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.