[BACK]Return to numeric.in CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / roff / cond

File: [cvsweb.bsd.lv] / mandoc / regress / roff / cond / numeric.in (download)

Revision 1.2, Tue Jul 4 15:26:31 2017 UTC (6 years, 11 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6, VERSION_1_14_5, VERSION_1_14_4, VERSION_1_14_3, VERSION_1_14_2, HEAD
Changes since 1.1: +2 -1 lines

Messages of the -Wbase level now print STYLE:.  Since this
causes horrible churn anyway, profit of the opportunity to stop
excessive testing, such that this is hopefully the last instance
of such churn.  Consistently use OpenBSD RCS tags, blank .Os,
blank fourth .TH argument, and Mdocdate like everywhere else.
Use -Ios=OpenBSD for platform-independent predictable output.

.\" $OpenBSD: numeric.in,v 1.5 2017/07/04 14:53:26 schwarze Exp $
.TH COND-NUMERIC 1 "December 16, 2014"
.SH NAME
cond-numeric \- roff conditions involving numbers
.SH DESCRIPTION
positive number:
plain
.ie 42 (t)
.el (f)
negated
.ie !42 (t)
.el (f)
.PP
negative number:
plain
.ie -42 (t)
.el (f)
negated
.ie !-42 (t)
.el (f)
.PP
second number missing:
.ie 42=bad worse
.el ok
.PP
operator "<":
smaller
.ie 1<2 (t)
.el (f)
equal
.ie 1<1 (t)
.el (f)
greater
.ie 2<1 (t)
.el (f)
.PP
operator "<=":
smaller
.ie 1<=2 (t)
.el (f)
equal
.ie 1<=1 (t)
.el (f)
greater
.ie 2<=1 (t)
.el (f)
.PP
operator "=":
smaller
.ie 1=2 (t)
.el (f)
equal
.ie 1=1 (t)
.el (f)
greater
.ie 2=1 (t)
.el (f)
.PP
operator "==":
smaller
.ie 1==2 (t)
.el (f)
equal
.ie 1==1 (t)
.el (f)
greater
.ie 2==1 (t)
.el (f)
.PP
operator ">=":
smaller
.ie 1>=2 (t)
.el (f)
equal
.ie 1>=1 (t)
.el (f)
greater
.ie 2>=1 (t)
.el (f)
.PP
operator ">":
smaller
.ie 1>2 (t)
.el (f)
equal
.ie 1>1 (t)
.el (f)
greater
.ie 2>1 (t)
.el (f)
.PP
with negative numbers:
mm
.ie -2<-1 (t)
.el (f)
mp
.ie -2<1 (t)
.el (f)
pm
.ie 1>-2 (t)
.el (f)
.PP
operator "&":
00
.ie 0&0 (t)
.el (f)
01
.ie 0&1 (t)
.el (f)
10
.ie 1&0 (t)
.el (f)
11
.ie 1&1 (t)
.el (f)
.PP
operator ":":
00
.ie 0:0 (t)
.el (f)
01
.ie 0:1 (t)
.el (f)
10
.ie 1:0 (t)
.el (f)
11
.ie 1:1 (t)
.el (f)
.PP
with scaling units:
1i>2c
.ie 1i>2c (t)
.el (f)
1i-6P
.ie 1i-6P (t)
.el (f)
.PP
unmatched parenthesis:
.ie (
(t)
.el (f)
one
.ie (1 (t)
.el (f)
.PP
negated unmatched parenthesis:
.ie !(
(t)
.el (f)
zero
.ie !(0 (t)
.el (f)