/// <summary>
///
/// </summary>
/// <param name="exp"></param>
/// <returns></returns>
public static double PowerOf2(int exp)
{
if (exp > 1023 || exp < -1022)
{
throw new ArgumentException("Exponent out of bounds");
}
long expBias = exp + ExponentBias;
long bits = expBias << 52;
return(BitConverter.Int64BitsToDouble(bits));
}