- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Is there a command to convert a character string into a Real number string? If the variable X is initialized as a character and contains the character "3", how do I change it so that "X" is now a real variable containing the number "3"?
thanks.
thanks.
Enlace copiado
1 Responder
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
You can't have the same variable be both a character string and a numeric, but you can do something like this:
READ (XSTRING,*) X
where XSTRING is a CHARACTER variable containing the string "3" and X is a REAL variable. This is called "Internal READ" - look it up in the Compaq Fortran Language Reference Manual.
Steve
READ (XSTRING,*) X
where XSTRING is a CHARACTER variable containing the string "3" and X is a REAL variable. This is called "Internal READ" - look it up in the Compaq Fortran Language Reference Manual.
Steve
Responder
Opciones de temas
- Suscribirse a un feed RSS
- Marcar tema como nuevo
- Marcar tema como leído
- Flotar este Tema para el usuario actual
- Favorito
- Suscribir
- Página de impresión sencilla