You are here: Symbol Reference > Math387 Namespace > Functions > Math387.SmallestExp2 Function
MtxVec VCL
ContentsIndex
PreviousUpNext
Math387.SmallestExp2 Function

Closest power of 2 to n.

Pascal
function SmallestExp2(n: integer): integer; overload;

the first smaller or equal power of two, if n is not power of two.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!