bstr_I1P Function

private elemental function bstr_I1P(n) result(bstr)

Arguments

TypeIntentOptionalAttributesName
integer(kind=I1P), intent(in) :: n

Return Value character(len=8)


Called by

proc~~bstr_i1p~~CalledByGraph proc~bstr_i1p bstr_I1P interface~bstr bstr interface~bstr->proc~bstr_i1p program~volatile_doctest~20 volatile_doctest program~volatile_doctest~20->interface~bstr program~volatile_doctest~52 volatile_doctest program~volatile_doctest~52->interface~bstr program~volatile_doctest~656 volatile_doctest program~volatile_doctest~656->interface~bstr program~volatile_doctest~798 volatile_doctest program~volatile_doctest~798->interface~bstr program~volatile_doctest~452 volatile_doctest program~volatile_doctest~452->interface~bstr program~volatile_doctest~850 volatile_doctest program~volatile_doctest~850->interface~bstr program~volatile_doctest~998 volatile_doctest program~volatile_doctest~998->interface~bstr program~volatile_doctest~423 volatile_doctest program~volatile_doctest~423->interface~bstr program~volatile_doctest~821 volatile_doctest program~volatile_doctest~821->interface~bstr program~volatile_doctest~877 volatile_doctest program~volatile_doctest~877->interface~bstr program~volatile_doctest~993 volatile_doctest program~volatile_doctest~993->interface~bstr program~volatile_doctest~1025 volatile_doctest program~volatile_doctest~1025->interface~bstr program~volatile_doctest~1153 volatile_doctest program~volatile_doctest~1153->interface~bstr program~volatile_doctest~2 volatile_doctest program~volatile_doctest~2->interface~bstr program~volatile_doctest~418 volatile_doctest program~volatile_doctest~418->interface~bstr program~volatile_doctest~450 volatile_doctest program~volatile_doctest~450->interface~bstr program~volatile_doctest~848 volatile_doctest program~volatile_doctest~848->interface~bstr program~volatile_doctest~816 volatile_doctest program~volatile_doctest~816->interface~bstr program~volatile_doctest~578 volatile_doctest program~volatile_doctest~578->interface~bstr program~volatile_doctest~1204 volatile_doctest program~volatile_doctest~1204->interface~bstr program~volatile_doctest~81 volatile_doctest program~volatile_doctest~81->interface~bstr program~volatile_doctest~223 volatile_doctest program~volatile_doctest~223->interface~bstr program~volatile_doctest~275 volatile_doctest program~volatile_doctest~275->interface~bstr program~volatile_doctest~629 volatile_doctest program~volatile_doctest~629->interface~bstr program~volatile_doctest~799 volatile_doctest program~volatile_doctest~799->interface~bstr program~volatile_doctest~975 volatile_doctest program~volatile_doctest~975->interface~bstr program~volatile_doctest~1175 volatile_doctest program~volatile_doctest~1175->interface~bstr program~volatile_doctest~246 volatile_doctest program~volatile_doctest~246->interface~bstr program~volatile_doctest~302 volatile_doctest program~volatile_doctest~302->interface~bstr program~volatile_doctest~400 volatile_doctest program~volatile_doctest~400->interface~bstr program~volatile_doctest~600 volatile_doctest program~volatile_doctest~600->interface~bstr program~volatile_doctest~1054 volatile_doctest program~volatile_doctest~1054->interface~bstr program~volatile_doctest~1170 volatile_doctest program~volatile_doctest~1170->interface~bstr program~volatile_doctest~1202 volatile_doctest program~volatile_doctest~1202->interface~bstr program~volatile_doctest~3 volatile_doctest program~volatile_doctest~3->interface~bstr program~volatile_doctest~241 volatile_doctest program~volatile_doctest~241->interface~bstr program~volatile_doctest~273 volatile_doctest program~volatile_doctest~273->interface~bstr program~volatile_doctest~479 volatile_doctest program~volatile_doctest~479->interface~bstr program~volatile_doctest~595 volatile_doctest program~volatile_doctest~595->interface~bstr program~volatile_doctest~627 volatile_doctest program~volatile_doctest~627->interface~bstr program~volatile_doctest~54 volatile_doctest program~volatile_doctest~54->interface~bstr program~volatile_doctest~224 volatile_doctest program~volatile_doctest~224->interface~bstr program~volatile_doctest~976 volatile_doctest program~volatile_doctest~976->interface~bstr program~volatile_doctest~1152 volatile_doctest program~volatile_doctest~1152->interface~bstr program~volatile_doctest~25 volatile_doctest program~volatile_doctest~25->interface~bstr program~volatile_doctest~401 volatile_doctest program~volatile_doctest~401->interface~bstr program~volatile_doctest~577 volatile_doctest program~volatile_doctest~577->interface~bstr program~volatile_doctest~1027 volatile_doctest program~volatile_doctest~1027->interface~bstr program~volatile_doctest~1231 volatile_doctest program~volatile_doctest~1231->interface~bstr

Contents

Source Code


Source Code

   elemental function bstr_I1P(n) result(bstr)
   !< Convert integer to string of bits.
   !<
   !< @note It is assumed that I1P is represented by means of 8 bits, but this is not ensured in all architectures.
   !<
   !<```fortran
   !< use penf
   !< print "(A)", bstr(n=1_I1P)
   !<```
   !=> 00000001 <<<
   integer(I1P), intent(in) :: n    !< Real to be converted.
   character(8)             :: bstr !< Returned bit-string containing input number.

   write(bstr, '(B8.8)') n
   endfunction bstr_I1P