[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PATCH: adds seq ordinal/hexidecimal integer output

From: Paul Eggert
Subject: Re: PATCH: adds seq ordinal/hexidecimal integer output
Date: Wed, 08 Jun 2005 12:46:12 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]