Subject: Re: bug#75994: "seq -w" is broken for large enough numbers

From: Alexey Dobriyan <[email-masked]>
Date: Sat, 1 Feb 2025 23:34:31 +0300

On Sat, Feb 01, 2025 at 08:01:18PM +0000, Pádraig Brady wrote:
> With -w seq will use long doubles internally,
> which usually have a 64 bit significand.
> I.e. once you go above 2^64, you get approximations of integers.
> 
> Now we could adjust seq to use the "ASCII" increment method
> in this case by handling leading zeros appropriately.
> It would be good to know your use case here though,
> as to know how common this issue might be.

The usecase is using GNU seq as reference implementation. :^)

I'd do decimal fixed point. Given that seq only does addition
it won't be that bad.