Math387.SmallestExp2 Method

function SmallestExp2(n: Integer): Integer;

Closest power of 2 to n.

#NameTypeDescription
1nInteger

Returns: Int32 - the first smaller or equal power of two, if n is not power of two.