Next: Mathematical Intrinsic Functions
Up: Intrinsic Procedures
Previous: Intrinsic Procedures
It is easy to transform the type of an entity,
- REAL(i) converts i to a real
approximation,
- INT(x) truncates x to the integer equivalent,
- DBLE(a) converts a to DOUBLE PRECISION,
- IACHAR(c) returns the position of CHARACTER c in the
ASCII collating sequence,
- ACHAR(i) returns the character in the ASCII
collating sequence.
All above are intrinsic functions. For example,
PRINT*, REAL(1), INT(1.7), INT(-0.9999)
PRINT*, IACHAR('C'), ACHAR(67)
are equal to
1.000000 1 0
67 C
For more information, click here
Next: Mathematical Intrinsic Functions
Up: Intrinsic Procedures
Previous: Intrinsic Procedures
©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997Not for commercial use.