Re: How to convert integers to characters?
- From: Zbigniew <cblasius@xxxxxxxxx>
- Date: Sat, 29 Sep 2007 03:27:13 -0700
! Fortran 90 code begins
program ex
implicit none
real::a=123.4
character(len=10)::b
write(b,*)a
write(*,"(A8,1X,I3)")b, len_trim(b)
end
! Fortran 90 code ends
Maybe you should write in this way:
write(*,"(A8,1X,I3)") b, trim(adjustl(b))
Best regards,
Zbigniew
.
- Follow-Ups:
- Re: How to convert integers to characters?
- From: Zbigniew
- Re: How to convert integers to characters?
- References:
- How to convert integers to characters?
- From: hermitian
- Re: How to convert integers to characters?
- From: Terry Duell
- Re: How to convert integers to characters?
- From: hermitian
- Re: How to convert integers to characters?
- From: Richard Maine
- Re: How to convert integers to characters?
- From: hermitian
- How to convert integers to characters?
- Prev by Date: Windows array allocation problem
- Next by Date: Re: How to convert integers to characters?
- Previous by thread: Re: How to convert integers to characters?
- Next by thread: Re: How to convert integers to characters?
- Index(es):