Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 9/08/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

ILEN

Inquiry Intrinsic Function (Generic): Returns the length (in bits) of the two's complement representation of an integer.

result = ILEN (i)

i

Must be of type integer.

Results

The result type and kind are the same as i. The result value is (LOG2( i+ 1 )) if i is not negative; otherwise, the result value is (LOG2( - i)).

Example

ILEN (4) has the value 3.

ILEN (-4) has the value 2.