summaryrefslogtreecommitdiffstats
path: root/lib/libutil/humanize_number.3
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2006-07-15 20:53:36 +0000
committerimp <imp@FreeBSD.org>2006-07-15 20:53:36 +0000
commit5d17f2bbe1d2fb028334b952f3baa71f9be5d9bc (patch)
tree6b42364572dd7c6f22efb358224693e3d4fbeebc /lib/libutil/humanize_number.3
parenta2b2987edd4d5e36b0cff9d02a63527e38bb4e82 (diff)
downloadFreeBSD-src-5d17f2bbe1d2fb028334b952f3baa71f9be5d9bc.zip
FreeBSD-src-5d17f2bbe1d2fb028334b952f3baa71f9be5d9bc.tar.gz
Note the convention that humanize_number follows.
Add 'engineering' numbers to table.
Diffstat (limited to 'lib/libutil/humanize_number.3')
-rw-r--r--lib/libutil/humanize_number.319
1 files changed, 11 insertions, 8 deletions
diff --git a/lib/libutil/humanize_number.3 b/lib/libutil/humanize_number.3
index 650c936..d5b4e28 100644
--- a/lib/libutil/humanize_number.3
+++ b/lib/libutil/humanize_number.3
@@ -76,16 +76,19 @@ by 1024 until it will.
In this case, prefix
.Fa suffix
with the appropriate SI designator.
+.Nm
+follows the traditional computer science conventions rather than the proposed
+SI power of two convention.
.Pp
The prefixes are:
-.Bl -column "Prefix" "Description" "Multiplier" -offset indent
-.It Sy "Prefix" Ta Sy "Description" Ta Sy "Multiplier"
-.It Li k Ta No kilo Ta 1024
-.It Li M Ta No mega Ta 1048576
-.It Li G Ta No giga Ta 1073741824
-.It Li T Ta No tera Ta 1099511627776
-.It Li P Ta No peta Ta 1125899906842624
-.It Li E Ta No exa Ta 1152921504606846976
+.Bl -column "Prefix" "Description" "1000000000000000000" -offset indent
+.It Sy "Prefix" Ta Sy "Description" Ta Sy "Multiplier" Ta Sy "Multiplier 1000x"
+.It Li k Ta No kilo Ta 1024 Ta 1000
+.It Li M Ta No mega Ta 1048576 Ta 1000000
+.It Li G Ta No giga Ta 1073741824 Ta 1000000000
+.It Li T Ta No tera Ta 1099511627776 Ta 1000000000000
+.It Li P Ta No peta Ta 1125899906842624 Ta 1000000000000000
+.It Li E Ta No exa Ta 1152921504606846976 Ta 1000000000000000000
.El
.Pp
The
OpenPOWER on IntegriCloud