|
|
 |
| found 47 articles for 0.011 sec |
  |
|
|
Group: comp.lang.fortran · Group Profile · Search for Logicals converted to integers during reading in comp.lang.fortran
Author: Jugoslav Dujic
Date: Jul 28, 2006 07:03
...F", "T", ".f.", and ".t." to integers during reading. || For example: || || program test || || integer :: a || || read(*,*) a || print *, "Value of a: ", a || || end program test || || If ...it, and enter T or F, ifort 9 converts it to -1 or 0. Other || compilers... annoying, I must observe. (I mean, entire logical= integer stuff allowed in DEC and inheritants). ...
|
| Show full article (1.06Kb) · Show article thread |
Group: comp.lang.fortran · Group Profile · Search for Logicals converted to integers during reading in comp.lang.fortran
Author: dpb
Date: Jul 28, 2006 06:47
...ask, if anybody knows what the standard says about the conversion of "F", "T", ".f.", and ".t." to integers during reading. For example: program test integer :: a read(*,*) a print *, "Value of a: ", a end program test If you run it, and enter T or F, ifort 9 converts it to -1 or 0. Other compilers (g95 on i686, f95 ...
|
| Show full article (1.15Kb) · Show article thread |
|
 |
|
1 ·
2 ·
3 ·
4 ·
5 ·
next |
|
|