IBM Extension

ILEN(I)

Purpose

Returns one less than the length, in bits, of the twos complement representation of an integer.

Class

Elemental function

Argument type and attributes

I
is of type integer

Result type and attributes

Same as I.

Result value

Examples

I=ILEN(4)  ! 3
J=ILEN(-4) ! 2
End of IBM Extension