Annotation of researchv10dc/630/man/src/p_man/man3/integer.3r, revision 1.1.1.1

1.1       root        1: .ds ZZ DEVELOPMENT PACKAGE
                      2: .TH INTEGER 3R "630 MTG"
                      3: .XE "Iceil()"
                      4: .XE "Ifloor()"
                      5: .XE "min()"
                      6: .XE "max()"
                      7: .SH NAME
                      8: integer: Iceil, Ifloor, min, max \- integer functions
                      9: .XE "abs,"
                     10: .XE "abs,"
                     11: .SH SYNOPSIS
                     12: .PP
                     13: .B short Iceil (a, b)
                     14: .PP
                     15: .B short Ifloor (a, b)
                     16: .PP
                     17: .B int min (b, c)
                     18: .PP
                     19: .B int max (b, c)
                     20: .PP
                     21: .B long a;
                     22: .br
                     23: .B int b, c;
                     24: .SH DESCRIPTION
                     25: .PP
                     26: The
                     27: .I Iceil
                     28: function
                     29: returns the smallest short integer which, when multiplied by
                     30: .IR b,
                     31: is not less than
                     32: .I a. 
                     33: .PP
                     34: The
                     35: .I Ifloor
                     36: function
                     37: returns the largest short integer which, when multiplied by
                     38: .I b,
                     39: is not greater than
                     40: .I a. 
                     41: .PP
                     42: For both
                     43: .I Iceil
                     44: and
                     45: .I Ifloor
                     46: if
                     47: .I b
                     48: is equal to 0 or 1,
                     49: the long integer
                     50: .I a
                     51: is truncated to a short and returned.
                     52: Otherwise, if the result is greater than a short, it is truncated
                     53: before being returned.
                     54: .PP
                     55: The
                     56: .I min
                     57: function
                     58: returns the minimum of the two integers.
                     59: .PP
                     60: The
                     61: .I max
                     62: function
                     63: returns the maximum of the two integers.
                     64: .SH EXAMPLE
                     65: .PP
                     66: .RS 3
                     67: .nf
                     68: .ft CM
                     69: Iceil (7, 2)  and  Iceil (10, 3) both equal 4.
                     70: .sp
                     71: Ifloor (9, 2)  and  Ifloor (13, 3) both equal 4.
                     72: .sp
                     73: min (32, 16) equals 16.
                     74: .sp
                     75: max (32, 14) equals 32.
                     76: .fi
                     77: .ft R
                     78: .RE

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.