firewallet-mobile-api/hns.py

5 lines
127 B
Python
Raw Normal View History

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