Skip to Content
gnux

--format

Use printf style floating-point FORMAT; see FORMAT below for details.

An option of numfmtx.

Usage

numfmtx --format=FORMAT [NUMBER]...

Details

ShortLongValueDefaultMeaning
--formatFORMATuse printf style floating-point FORMAT; see FORMAT below for details

Examples

numfmtx --format='took %.3fs' 1.23456
Output
took 1.235s

Help in the terminal

gnux help numfmtx --format

On this page