在fortran f77中将实数转换为字符串

时间:2012-11-16 12:57:59

标签: string fortran type-conversion real-datatype

尝试将实数转换为字符串时,我在fortran中遇到以下错误。

iio: [-1] end of file
lately: writing sequential formatted internal IO
part of last string:   100000.   |
Abort (core dumped)

以下是我收到错误的代码。在99999.5中抛出上述错误的值

CHARACTER STRING*12
WRITE (STRING, '(G12.5)') VALUE

为什么会抛出此错误?

0 个答案:

没有答案