Kuwanger <address@hidden> writes:
> seq offers -f to output floating point output. Includes is a patch to add
> ordinal and hexidecimal output. Output is cast to int first.
It should be cast to uintmax_t, no?
> Also, the manual page still needs updated, I believe.
Yes. That's usually the most work for changes like these. :-)
> I'd like to change this to output 64-bit numbers, not just 32-bit,
Wouldn't you need to modify 'seq' to use long double uniformly?
(This would make sense.)
And you'd need a host where 'long double' can store at least 64 bits.
That's not universal, alas. So perhaps you'd need to use a long-integer
package or something like that.
> though I'm not sure how--coreutils' printf only supports 32-bit
> ordinal/hexidecimal
No, in recent coreutils it supports 64-bit numbers. E.g.,
$ printf '%.30d\n' 9223372036854775807
000000000009223372036854775807