Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Data-Conversion Functions
◄Up► ◄Contents► ◄Index► ◄Back►
─────Data-Conversion Functions──────────────────────────────────────────────
INT converts arguments to integers.
INT1 converts its arguments to INTEGER*1. INT2 and HFIX convert
their arguments to INTEGER*2. INT4 and JFIX convert their
arguments to INTEGER*4.
INTC converts arguments to C integers. IFIX and IDINT convert
single- or double-precision arguments, respectively, to integers.
REAL converts arguments to single-precision numbers. If gen is
complex, REAL(gen) equals the real part of gen. FLOAT and SNGL
convert numbers to the single-precision real data type. DBLE
converts numbers to the double-precision real data type. DREAL
converts COMPLEX*16 numbers to double-precision real numbers by
deleting the imaginary part.
CMPLX and DCMPLX convert numbers to the complex data types. If
only one argument, gen, is specified, gen can be an integer, a
real, a double-precision, or a complex number. If gen is complex,
CMPLX(gen) equals gen. If gen is an integer, a real, or a double-
precision number, the real part of the result equals REAL(gen)
and the imaginary part equals 0.0. If two arguments, genA and
genB, are specified, both must have the same type. In this case,
the real part of the result equals REAL(genA), and the imaginary
part of the result equals REAL(genB).
The ICHAR intrinsic function translates ASCII characters into
integers, and the CHAR intrinsic function translates integers
into ASCII characters. (The ASCII character set is listed in
Appendix A, "ASCII Character Codes.") The argument of ICHAR must
be a single character.
-♦-