+-------------------------------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----------------------------+

IBM Copyright 2003