Re: [Bug 1899553] Re: gcvt and qgcvt do not always provide requested precsion

2021-02-02 Thread Robert Gilmour
Hi, On Wed, Feb 3, 2021 at 3:46 AM Balint Reczey <1899...@bugs.launchpad.net> wrote: > The first result is slightly less, the second one is slightly more > accurate representation of 0.1 compared to the exected value thanks to > the rounding. > > IMO it makes sense to omit the digits that are

[Bug 1899553] [NEW] gcvt and qgcvt do not always provide requested precsion

2020-10-12 Thread Robert Gilmour
Public bug reported: On Ubuntu 20.04.1 LTS, glibc-2.31: gcvt() will output no more than 17 digits of precision. qgcvt() will output no more than 21 digits of precision. Here is the demo : // #include #include int main(void) { char ebuf[80];