import math as MS

# 計算
num = MS.sqrt(2) * (2 ** 27)

# 整数部分だけ取得
num_int = int(num)

# 二進数に変換
binary_str = bin(num_int)[2:]  # '0b' を除去

print(binary_str)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: