Search All of the Math Forum:

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

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

Topic: Upscaling an IEEE754 subnormal number to be normal
Replies: 6   Last Post: Oct 19, 2017 11:32 AM

 Messages: [ Previous | Next ]
 Damian McGuckin Posts: 4 Registered: 6/17/15
Upscaling an IEEE754 subnormal number to be normal
Posted: Oct 17, 2017 7:54 PM

Given an IEEE 754 number with a significand of size 'p', what is the smallest scaling factor that is guaranteed to bvring it into the normal range.

I would have thought that this was simply 2^p. When I take the smallest subnormal double and float, i.e. a '1' in the least significant bit of the mantissa, all zeros in the exponent and sign field, and multiply by 2^p (as a double or float), I get a number which has a non-zero exponent, i.e. normal.

However, reviewing some versions of the source code of 'frexp' seem to suggest that it is has to be instead 2^(p+2).

Why is this and what am I missing here?

Thanks - Damian

Date Subject Author
10/17/17 Damian McGuckin
10/18/17 Robin Vowels
10/18/17 Damian McGuckin
10/18/17 Robin Vowels
10/18/17 Damian McGuckin
10/18/17 Damian McGuckin
10/19/17 Robin Vowels