def from_small(amount:int) -> float: return amount/10**6 def to_small(amount:float) -> int: return int(amount*(10**6))