Thank you, but I think I could use the function ldexpf in order to do
the inverse operation (Decimal to binary...). Am I wrong?
Then, for what I want to do, the binary mantissa M is normalized, if I
have the decimal value of M, what operation I have to do (on the
decinal number) if I wanto to de-normalize it?
My purpose is to have value = -1*S*M*2^E
Thank you,
Camelot
>
> Have a look at ldexpf(3).
>
> If you only have four bytes, you must first convert them to a float
> and then from float to double.
>
> http://en.wikipedia.org/wiki/IEEE_754
> --
> __Pascal Bourguignon__- Nascondi testo citato
>
> - Mostra testo citato -