インテル® Fortran コンパイラー XE 13.1 ユーザー・リファレンス・ガイド

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 is the same as i. The result value is (LOG2( i+ 1 )) if i is not negative; otherwise, the result value is (LOG2( - i)).

ILEN (4) has the value 3.
ILEN (-4) has the value 2. 

このヘルプトピックについてのフィードバックを送信