5 lines
127 B
Python
5 lines
127 B
Python
|
def from_small(amount:int) -> float:
|
||
|
return amount/10**6
|
||
|
|
||
|
def to_small(amount:float) -> int:
|
||
|
return int(amount*(10**6))
|