The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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,412
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 <>, wrote:

> On Thursday, October 18, 2012 3:14:18 PM UTC+2, 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 at NCTM 1994-2018. All Rights Reserved.