[Cfp-interest 2092] Re: number classification macros, fpclassify and normal numbers

Fred J. Tydeman tydeman at tybor.com
Fri Aug 13 14:08:03 PDT 2021


On Fri, 13 Aug 2021 13:49:09 -0700 Jim Thomas wrote:
>
>> Note that for a strict floating-point format, "normal" should be
>> the same as "normalized".
>
>I think this would be a natural resolution, really just a clarification, and might (appear to) be the most helpful resolution for analysis. 

That thinking only applies to IEEE-754 binary floating-point (FP).

The 32-bit decimal FP has 7 versions of the value 1:
0000001e0
0000010e-1
0000100e-2
0001000e-3
0010000e-4
0100000e-5
1000000e-6

Only the value with a leading non-zero digit is normalized.
So, the other six are unnormals.  But, they should be
considered normal floating-point numbers.



---
Fred J. Tydeman        Tydeman Consulting
tydeman at tybor.com      Testing, numerics, programming
+1 (702) 608-6093      Vice-chair of PL22.11 (ANSI "C")
Sample C99+FPCE tests: http://www.tybor.com
Savers sleep well, investors eat well, spenders work forever.



More information about the Cfp-interest mailing list