Next: , Previous: BESYN, Up: Intrinsic Procedures


8.25 BIT_SIZE — Bit size inquiry function

Description:
BIT_SIZE(I) returns the number of bits (integer precision plus sign bit) represented by the type of I.
Option:
f95, gnu
Class:
elemental function
Syntax:
I = BIT_SIZE(I)
Arguments:

I The type shall be INTEGER(*).

Return value:
The return value is of type INTEGER(*)
Example:
          program test_bit_size
              integer :: i = 123
              integer :: size
              size = bit_size(i)
              print *, size
          end program test_bit_size