Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to Convert Numeric Types (Integer, Floating Point) into Strings in FORTRAN
How to Convert Numeric Types (Integer, Floating Point) into Strings in FORTRAN
Use the write statement to convert a numeric type to a character type, for example:

Integer iy

Character leaf *4

iy=200 1

Write (ye,' (i4)')iy.

Through this statement, the value of the integer iy can be converted into the character ye, and this can also be used as a variable name and placed in the statement of opening a file, such as open (1 1, file =' d: \ test \'/Ye/'. txt’)。