Math387.SmallestExp2 Method

Int32 SmallestExp2(Int32 n)

Closest power of 2 to n.

#NameTypeDescription
1nInt32

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