Math387.Exp2Int Method

Int32 Exp2Int(Int32 X)

2^x function.

#NameTypeDescription
1XInt32

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

Remarks:

This function is more than 10x as fast as a call to the Dew.Math.Units.Math387.Power function.