Program www_fcode_cn
Implicit none
write( * , * ) W( 1.750254E+00 )
contains
Character(len=9) Function W( r )
real :: r
character(len=11) :: t
write( t , '(es11.6e1)' ) r*1e-6
W = t(1:1) // t(3:8) // t(10:11)
End Function W
End Program www_fcode_cn
fcode 发表于 2014-10-10 11:44
[mw_shl_code=fortran,true]Program www_fcode_cn
Implicit none
write( * , * ) W( 1.750254E+00 )
fcode 发表于 2014-10-10 11:44
[mw_shl_code=fortran,true]Program www_fcode_cn
Implicit none
write( * , * ) W( 1.750254E+00 )
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |