Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | fm | Format different from the standard for the kind. |
||
real(kind=R8P), | intent(in) | :: | n | Real to be converted. |
Returned string containing input number.
Convert real to string.
elemental function strf_R8P(fm, n) result(str)
!---------------------------------------------------------------------------------------------------------------------------------
!< Convert real to string.
!---------------------------------------------------------------------------------------------------------------------------------
character(*), intent(in) :: fm !< Format different from the standard for the kind.
real(R8P), intent(in) :: n !< Real to be converted.
character(DR8P) :: str !< Returned string containing input number.
!---------------------------------------------------------------------------------------------------------------------------------
!---------------------------------------------------------------------------------------------------------------------------------
write(str, trim(fm)) n
return
!---------------------------------------------------------------------------------------------------------------------------------
endfunction strf_R8P