λΆλ μμμ μ λ μ λ°νκ² λ€λ£° λ
from decimal import *
a = Decimal('1.45')
b = 1.45
k = 3*60+42
print(a*k/60) # 5.365
print(b*k/60) # 5.364999999999999
λ°μ΄νΈλ₯Ό intλ‘ λ³ν
int.from_bytes(data, 'little') # 리νμλμΈ λ°©μ
int.from_bytes(data, 'big') # λΉ
μλμΈ λ°©μ
intλ₯Ό λ°μ΄νΈλ‘ λ³ν
n = 123
data = n.to_bytes(10, 'little')
μ μκ° λ°μ΄νΈλ‘ μΌλ§λ§νΌμ κΈΈμ΄μΈμ§ μκ³ μΆμ λ
x = 523 ** 23
x.bit_length() # 208