[UP]


Manual Reference Pages  - bit_size (3)

NAME

bit_size(3f) - [FORTRAN:INTRINSIC:BIT INQUIRY] Bit size inquiry function

CONTENTS

Syntax
Description
Arguments
Return Value
Example
Standard
Class

SYNTAX

result = bit_size(i)

DESCRIPTION

bit_size(i) returns the number of bits (integer precision plus sign bit) represented by the type of I.

ARGUMENTS

I - The type shall be INTEGER.

RETURN VALUE

The return value is of type INTEGER

EXAMPLE

Sample program:

    program demo_bit_size
        integer :: i = 123
        integer :: size
        size = bit_size(i)
        print *, size
    end program demo_bit_size

STANDARD

[[Fortran 95]] and later

CLASS

[[Inquiry function]]


bit_size (3) March 18, 2019
Generated by manServer 1.08 from 105d0878-33f8-4ec9-b495-e7320309a239 using man macros.