Skip to Content
gnux

--round

Use METHOD for rounding when scaling; METHOD can be: up, down, from-zero (default), towards-zero, nearest.

An option of numfmtx.

Usage

numfmtx --round=METHOD [NUMBER]...

Details

ShortLongValueDefaultMeaning
--roundMETHODuse METHOD for rounding when scaling; METHOD can be: up, down, from-zero (default), towards-zero, nearest

Examples

Round sizes down, never overstating them

numfmtx --to=si --round=down 1999
Output
1.9k

Help in the terminal

gnux help numfmtx --round

On this page