Intel fortran-80 Laptop User Manual


 
APPENDIX B I
INTRINSIC FUNCTIONS
The
following table lists the intrinsic (or predefined) functions available with
FORTRAN-SO. An intrinsic function
is
executed in
an
expression by referencing its
name
followed by some
argument
in parentheses.
If
more
than
one
argument
is
needed, they are
separated
by
commas
and
all
arguments
must be
of
the same type.
All angles
are
expressed in radians.
C =
SQRT(A
**2 + B**2)
= I +
MOD(M,
N) K
PAY
= BASE*40.0 + (l.5*BASE)*(AMAXI(O.O,HOURS-40.0»
The list
of
functions
is
qualified by the notes following the list. See also the discus-
sion
of
intrinsic functions in section 5 .1.1.
B.1
Intrinsic Function Summary
TYPE
OF
FORM
CATEGORY
FUNCTION
ARGUMENTS
FUNCTION
INT
(a)
Type
conversion
Convert
a to type integer
Real
Integer
(note
1)
IFIX (a)
Type conversion Convert
a to type integer Real Integer
(note
1)
REAL
(a)
Type
conversion
Convert
a to type real Integer Real
(note
2)
FLOAT
(a)
Type conversion Convert
a to type real Integer Real
(note
2)
ICHAR
(a)
Type conversion Convert
a
to
type integer
Character
Integer
(note
3)
AINT
(a)
Truncation
Truncate
a to integer value Real Real
(note
1)
ANINT(a)
Rounding
Round
a
to
nearest whole Real
Real
number
NINT
(a)
Rounding
Round
a
to
nearest integer Real
Integer
lABS (a)
Absolute value Return absolute value
of
a
Integer Integer
ABS (a)
Absolute value Return absolute value
of
a Real Real
MOD
(aI,
a2)
Remaindering
Return remainder from
aI/a2
Integer Integer
(notes
1,4)
AMOD
(aI,
a2)
Remaindering Return remainder from
all
a2
Real
Real
(notes 1,4)
ISIGN
(aI,
a2)
Sign
transfer
Transfer
sign
of
a2
to
al
Integer
Integer
(note
5)
-
B-1