diff --git a/pages/common/numfmt.md b/pages/common/numfmt.md index 37258b58295c79..5af45b8f3216e6 100644 --- a/pages/common/numfmt.md +++ b/pages/common/numfmt.md @@ -7,6 +7,18 @@ `numfmt --from si 1.5K` +- Convert 1500 to 1.5K (SI Units): + +`numfmt --to si 1500` + +- Convert 1.5K (IEC Units) to 1536: + +`numfmt --from iec 1.5K` + +- Use appropriate conversion based on the suffix: + +`numfmt --from auto {{1.5Ki}}` + - Convert 5th field (1-indexed) to IEC Units without converting header: `ls -l | numfmt --header=1 --field 5 --to iec`