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

2^x function.

Pascal
function Exp2Int(const X: Integer): Integer; overload;

The value of 2 raised to the power of X. Valid result is returned for X smaller than 32.

This function is more than 10x as fast as a call to the Power function.

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