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