Velocity Reviews > Conversion into IEEE-754 (floating point)

# Conversion into IEEE-754 (floating point)

Christian Christmann
Guest
Posts: n/a

 03-12-2006
Hi,

I need some help with the conversion of decimal numbers into
the IEEE-754 format (floating point).

There seem to be two possible formats. The one I need is defined
as follows:

Sm, C, M

with Sm = bit-vector representation of the mantissa sign
C = characteristic
M = bit-vector representation of abs(mantissa)

I could not find any information in the Internet how to practically
convert decimals into floating point numbers using C.

Could you help me out and perform a conversion, let's say for the
decimal 0.0745.

Thank you.

Chris

nos1eep
Guest
Posts: n/a

 03-12-2006
It is further alleged that on or about Sun, 12 Mar 2006 13:59:14
+0100, in alt.computer, the queezy keyboard of Christian Christmann
<(E-Mail Removed)> spewed the following:

|Hi,
|
|I need some help with the conversion of decimal numbers into
|the IEEE-754 format (floating point).
|
|There seem to be two possible formats. The one I need is defined
|as follows:
|
| Sm, C, M
|
|with Sm = bit-vector representation of the mantissa sign
| C = characteristic
| M = bit-vector representation of abs(mantissa)
|
|I could not find any information in the Internet how to practically
|convert decimals into floating point numbers using C.
|
|Could you help me out and perform a conversion, let's say for the
|decimal 0.0745.

Here is a java applet that converts IEEE-754:
http://www.h-schmidt.net/FloatApplet/IEEE754.html

And here is the search string:
--

-nos1eep

Kewl
Guest
Posts: n/a

 03-12-2006

Christian Christmann wrote:
> Hi,
>
> I need some help with the conversion of decimal numbers into
> the IEEE-754 format (floating point).
>
> There seem to be two possible formats. The one I need is defined
> as follows:
>
> Sm, C, M
>
> with Sm = bit-vector representation of the mantissa sign
> C = characteristic
> M = bit-vector representation of abs(mantissa)
>
> I could not find any information in the Internet how to practically
> convert decimals into floating point numbers using C.
>
> Could you help me out and perform a conversion, let's say for the
> decimal 0.0745.
>
> Thank you.
>
> Chris

are you a stripper i would love to see you as a stripper

 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 OffTrackbacks are On Pingbacks are On Refbacks are Off Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post xhtml champs Python 0 06-21-2011 11:59 AM PSD to XHTML Conversion Services and PSD to HTML CSS Conversion Services, PSD to Joomla, Drupal, Wor VHDL 0 04-25-2011 06:43 AM subramanian100in@yahoo.com, India C++ 2 09-15-2009 12:46 PM praba kar Python 1 04-08-2005 09:15 AM dinesh Java 1 12-16-2004 12:11 PM