BIT_SIZE intrinsic function

Standard: F77 F90 F95 F2003 F2008 F2018 Example program


<Syntax>

BIT_SIZE ( I )

I : Integer;
Result : Integer (default kind).

<Semantics>

This function returns the number of bits in integers with the same kind type parameter as I. This means the number of bits that may be used in the bit manipulation functions IAND, IEOR, et al.; in theory this might differ from the number of bits the integer takes in storage, but in practice it is the same.

This is an inquiry function, so I need not be defined; indeed, it is permitted to be disassociated, unallocated, or absent.

<Related>

DIGITS intrinsic function, INTEGER type