Jeff Parker wrote:
>
> Frank -
> The raw counts are important, but for
> floating point the position and meanings of
> the mantissa and exponent are also important.
> (Which base? How does the exponent express
> positive numbers? and so on)
>
Hi,
Hopefully his helps...
<snip from some old doc...>
eg:
For single-precision float values the exponent is 8 bits long, comprising e1 and e2 in
the figure, where the 7 bits in e1 are most significant. The exponent is represented as
excess 127. The fractional mantissa (f1 - f3) is a 23-bit value f where 1.0 <= f < 2.0, f1
being most significant and f3 being least significant. The value of a normalized number
is described by:
�1^sign x 2^(exponent � 127) x (1 + fraction)
And similar formulas for other float types...but with different
"exponent" offset values.
/ Frank
--
EUS/SV/Z Frank Singleton ASO Americas BSS
Office : +1 972 583 3251 ECN 800 33251
Pager : +1 800 651 1184 Mobile : +1 214 228 0874
Amateur Radio: VK3FCS/KM5WS Email : frank.singleton@xxxxxxxxxxxx
Hardware: HP Omnibook 4150 running Redhat Linux 6.2 (2.2.16 kernel).