gcc 11.1.0: printf("%.43f\n", 0x1.52f8a8e32e982p-140): printed value is incorrectly rounded

Steven Abner pheonix.sja@att.net
Sat Nov 6 23:25:08 GMT 2021

On Sat, Nov 6, 2021 at 8:06 AM, Steven Abner <pheonix.sja@att.net> 
>  sample use:
> steven@steven-ryzen:~/Development/Projects$ gcc  newlib_printf_demo.c 
> -o nldemo
> steven@steven-ryzen:~/Development/Projects$ ./nldemo
> 0.0000000000000000000000000000000000000000009
> 3.14159
> Steve

  At least I'll stoke off the list comments:
Apologies, I hadn't synced files, so what I sent was an earlier version
lacking full long double abstract and full 128 mantissas. This also has
easy switching for testing between mantissas. This also voids earlier
ldtostr.c since was also non-synced. This version suppose to allow
running of quadruples along side of long double abstract. If giving
this serious consideration, can provide strtold for total independence
from gdtoa. This a big leap, so TALK amongst yourselves.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: newlib_printf_demo.c
Type: text/x-csrc
Size: 82278 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/newlib/attachments/20211106/9e3669c6/attachment-0001.bin>

More information about the Newlib mailing list