Hi all!
I'm quite new in Fortran, and coming from other programming languages i was surprised in not finding here a function to convert a character variable in a numerical format ( and vice versa). I dug on the net for a solution and finally i found that you can use internal read/write for the purpuse. The problem is that i need to have this functionality in a function, but when i tried to create once i found out that i can't because of i'm not allowed to do I/O operation inside a function! There is no way to create a function with input a character, and output the corresponding number?
By
I'm quite new in Fortran, and coming from other programming languages i was surprised in not finding here a function to convert a character variable in a numerical format ( and vice versa). I dug on the net for a solution and finally i found that you can use internal read/write for the purpuse. The problem is that i need to have this functionality in a function, but when i tried to create once i found out that i can't because of i'm not allowed to do I/O operation inside a function! There is no way to create a function with input a character, and output the corresponding number?
By