next up previous contents
Next: Mathematical Intrinsic Functions Up: Intrinsic Procedures Previous: Intrinsic Procedures

 

Type Conversion Functions

In Fortran 90 it is easy to explicitly transform the type of a constant or variable by using the in-built intrinsic functions.

For example,

    PRINT*, REAL(1), INT(1.7), INT(-0.9999)
    PRINT*, IACHAR('C'), ACHAR(67)

would give

    1.000000 1 0
    67 C

Return to corresponding overview page gif


next up previous contents
Next: Mathematical Intrinsic Functions Up: Intrinsic Procedures Previous: Intrinsic Procedures

©University of Liverpool, 1997
Wed May 28 20:20:27 BST 1997
Not for commercial use.