summaryrefslogtreecommitdiffstats
path: root/roff.7
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-01-23 00:42:00 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-01-23 00:42:00 +0000
commit1c07d0670659745601b58f021984f85c38c41f44 (patch)
tree1659ee382e2cc118df5cf22df6423e8ac1e2b902 /roff.7
parent8a2f1706fd6632a3035d5145d1d04c67148824c6 (diff)
downloadmandoc-1c07d0670659745601b58f021984f85c38c41f44.tar.gz
Wonders of roff(7): Integer numbers in numerical expressions can carry
scaling units, and some manuals (e.g. in devel/grcs) actually use that, so let's support it. Missing feature reported by naddy@.
Diffstat (limited to 'roff.7')
-rw-r--r--roff.78
1 files changed, 8 insertions, 0 deletions
diff --git a/roff.7 b/roff.7
index dcb81ce5..5456bdc8 100644
--- a/roff.7
+++ b/roff.7
@@ -1715,6 +1715,14 @@ prefixed by an optional sign
.Sq +
or
.Sq - .
+Each number may be followed by one optional scaling unit described below
+.Sx Scaling Widths .
+The following equations hold:
+.Bd -literal -offset indent
+1i = 6v = 6P = 10m = 10n = 72p = 1000M = 240u = 240
+254c = 100i = 24000u = 24000
+1f = 65536u = 65536
+.Ed
.Pp
The following binary operators are implemented.
Unless otherwise stated, they behave as in the C language: