On 2019-08-01 2:07 p.m., Peng Yu wrote:

I only find %.0f to print integers. But it is just a float with no
digits after the point. Is there a real integer format in seq? Thanks.

Please read the manual, or at least the "--help" screen:

  $ seq --help
   -f, --format=FORMAT      use printf style floating-point FORMAT
  FORMAT must be suitable for printing one argument of type 'double';
  it defaults to %.PRECf if FIRST, INCREMENT, and LAST are all fixed
  point decimal numbers with maximum precision PREC, and to %g

This makes it clear that the format must be "%f" or "%g" (and must be
compatible with a "double" type).
So there is no current support for integer format directly.

 - assaf

Reply via email to