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

Now try this question gif


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

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 15:03:35 GMT 1996
Not for commercial use.