Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mod(3f) — Ultrix-11 3.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

mod(3f)

NAME

mod, amod, dmod − Fortran remaindering intrinsic functions

SYNTAX

integer i, j, k
real r1, r2, r3
double precision dp1, dp2, dp3

k = mod(i, j)
r3 = amod(r1, r2)
r3 = mod(r1, r2)
dp3 = dmod(dp1, dp2)
dp3 = mod(dp1, dp2)

DESCRIPTION

The mod function returns the integer remainder of its first argument divided by its second argument.  Both amod and dmod return, respectively, the real and double-precision whole number remainder of the integer division of their two arguments.  The generic version mod will return the data type of its arguments. 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026