libutil - Add HN_FRACTIONAL to humanize_number()
commita4b1d485a91a1ba66320d7f7614f36561107cf7d
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 31 Dec 2016 00:07:04 +0000 (30 16:07 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 31 Dec 2016 00:07:54 +0000 (30 16:07 -0800)
treea2bd406cf27dc2c4b5547231faa7483230f4dec8
parentecc2e461f29d5bad86787ac5db04874a66b03fad
libutil - Add HN_FRACTIONAL to humanize_number()

* Add HN_FRACTIONAL to humanize_number().  This is an expanded HN_DECIMAL
  mode.  Up to two additional fractional digits will be displayed if they
  would fit in the buffer.  Fractional digits are not displayed for small
  numbers (less than 1000 or less than 1024 depending on the mode).
lib/libutil/humanize_number.3
lib/libutil/humanize_number.c
lib/libutil/libutil.h