[cfp-interest 3583] Re: frexpd32(DEC32_TRUE_MIN...
Fred J. Tydeman
tydeman at tybor.com
Mon Sep 1 15:21:13 PDT 2025
On Mon, 1 Sep 2025 09:55:03 -0700 Jim Thomas wrote:
>
>"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).
That is what I decided was the correct answer.
So, the DFP library I am currently testing is wrong.
---
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.
More information about the cfp-interest
mailing list