Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28592 Discussions

Bug Intel Fortran 8.0 (windows) with read function :(

mc_allan
Beginner
238 Views
Hi,
Try this :
program bug1057
character*11 str
double precision s
str = '1.7977E+308'
read(str,*) s
print *, ' s = ', s
end
forrtl: severe (64): input conversion error, unit -5, file Internal List-Directe
d Read
Image PC Routine Line Source
Console1.exe 00415B6F Unknown Unknown Unknown
Console1.exe 0040A8E2 Unknown Unknown Unknown
Console1.exe 00409655 Unknown Unknown Unknown
Console1.exe 00409B21 Unknown Unknown Unknown
Console1.exe 004039E0 Unknown Unknown Unknown
Console1.exe 00403147 Unknown Unknown Unknown
Console1.exe 00401095 _MAIN__ 22 Console1.f90
Console1.exe 0045BE8D Unknown Unknown Unknown
Console1.exe 00441290 Unknown Unknown Unknown
kernel32.dll 77E6141A Unknown Unknown Unknown
Please help me to find a solution :(
restriction s must be a "double precision"
Thanks you
0 Kudos
1 Reply
Steven_L_Intel1
Employee
238 Views
Your value is just over the maximum for the range. The maximum is approximately 1.797693134862316E+308.
0 Kudos
Reply