strf_R16P Function

private elemental function strf_R16P(fm, n) result(str)

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: fm

Format different from the standard for the kind.

real(kind=R16P), intent(in) :: n

Real to be converted.

Return Value character(len=DR16P)

Returned string containing input number.

Description

Convert real to string.


Source Code

  elemental function strf_R16P(fm, n) result(str)
  !---------------------------------------------------------------------------------------------------------------------------------
  !< Convert real to string.
  !---------------------------------------------------------------------------------------------------------------------------------
  character(*), intent(in) :: fm  !< Format different from the standard for the kind.
  real(R16P),   intent(in) :: n   !< Real to be converted.
  character(DR16P)         :: str !< Returned string containing input number.
  !---------------------------------------------------------------------------------------------------------------------------------

  !---------------------------------------------------------------------------------------------------------------------------------
  write(str, trim(fm)) n
  return
  !---------------------------------------------------------------------------------------------------------------------------------
  endfunction strf_R16P