Nofal, Mostafa said:
> This may sound silly. I am looking for intrinsic function in Fortran90 that
> change character to real or integer. Something similar to C atof & atoi. If
> you know that or know how to do that, I would greatly appreciate your help.
You just read and/or write the character string,
e.g.
CHARACTER(20) :: string = '123.4567E+8'
READ(STRING,*) x
PRINT *,x
Cheers,
--
...........................Malcolm Cohen, NAG Ltd., Oxford, U.K.
([log in to unmask])
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
|