byte_size_R8P Function

private elemental function byte_size_R8P(i) result(bytes)

Arguments

TypeIntentOptionalAttributesName
real(kind=R8P), intent(in) :: i

Return Value integer(kind=I1P)


Called by

proc~~byte_size_r8p~5~~CalledByGraph proc~byte_size_r8p~5 byte_size_R8P interface~byte_size~5 byte_size interface~byte_size~5->proc~byte_size_r8p~5

Contents

Source Code


Source Code

   elemental function byte_size_R8P(i) result(bytes)
   !< Compute the number of bytes of a real variable.
   !<
   !<```fortran
   !< use penf
   !< print FI1P, byte_size(1._R8P)
   !<```
   !=> 8 <<<
   real(R8P), intent(in) :: i     !< Real variable whose number of bytes must be computed.
   integer(I1P)          :: bytes !< Number of bytes of r.

   bytes = bit_size(i) / 8_I1P
   endfunction byte_size_R8P