[cfp-interest 3580] Re: frexpd32(DEC32_TRUE_MIN...

Jim Thomas jaswthomas at sbcglobal.net
Mon Sep 1 09:55:03 PDT 2025


“coefficient” refers to the (s, c, q) representation in 5.3.5.3.4 #8. In this representation, DEC32_TRUE_MIN is (+1, 1, -101) and the length of the coefficient is 1.

So the correct result for frexpd32(DEC32_TRUE_MIN, &i) is (+1, 1, -1) which is the representation for 1e-1DF (per 7.25.2.7).

- Jim Thomas

> On Aug 28, 2025, at 1:55 AM, Fred J. Tydeman <tydeman at tybor.com> wrote:
> 
> What is the expected value of:
> frexpd32(DEC32_TRUE_MIN, &i)
> Is it:
> 1e-1DF
> 1000000e-7DF
> something else
> 
> The issue is:  what is the length of the coefficient of DEC32_TRUE_MIN?
> Is it 1 or 7 digits?
> 
> 
> ---
> Fred J. Tydeman        Tydeman Consulting
> tydeman at tybor.com      Testing, numerics, programming
> +1 (702) 608-6093      Vice-chair of INCITS/C (ANSI "C")
> Sample C17+FPCE tests: http://www.tybor.com
> Savers sleep well, investors eat well, spenders work forever.
> 
> _______________________________________________
> cfp-interest mailing list
> cfp-interest at oakapple.net
> http://mailman.oakapple.net/mailman/listinfo/cfp-interest




More information about the cfp-interest mailing list