bit_size(3f) - [FORTRAN:INTRINSIC:BIT INQUIRY] Bit size inquiry function
Syntax
Description
Arguments
Return Value
Example
Standard
Class
result = bit_size(i)
bit_size(i) returns the number of bits (integer precision plus sign bit) represented by the type of I.
I - The type shall be INTEGER.
The return value is of type INTEGER
Sample program:
program demo_bit_size integer :: i = 123 integer :: size size = bit_size(i) print *, size end program demo_bit_size
[[Fortran 95]] and later
[[Inquiry function]]
bit_size (3) | March 18, 2019 |