You cannot change the type of a variable. If you want to convert a real variable to a character variable you need to use for example a write statement like:
Code:
write(string,*) x
(supposed that string is long enough to contains the value of the variable).
you can also use a formatted write such as:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.