bstr_I4P Function

private elemental function bstr_I4P(n) result(bstr)

Arguments

Type IntentOptional AttributesName
integer(kind=I4P), intent(in) :: n

Real to be converted.

Return Value character(len=32)

Returned bit-string containing input number.

Description

Convert integer to string of bits.

Called By

proc~~bstr_i4p~~CalledByGraph proc~bstr_i4p bstr_I4P interface~bstr bstr interface~bstr->proc~bstr_i4p
Help

Source Code

  elemental function bstr_I4P(n) result(bstr)
  !---------------------------------------------------------------------------------------------------------------------------------
  !< Convert integer to string of bits.
  !<
  !< @note It is assumed that I4P is represented by means of 32 bits, but this is not ensured in all architectures.
  !---------------------------------------------------------------------------------------------------------------------------------
  integer(I4P), intent(in) :: n    !< Real to be converted.
  character(32)            :: bstr !< Returned bit-string containing input number.
  !---------------------------------------------------------------------------------------------------------------------------------

  !---------------------------------------------------------------------------------------------------------------------------------
  write(bstr, '(B32.32)') n
  return
  !---------------------------------------------------------------------------------------------------------------------------------
  endfunction bstr_I4P