def satoshi_to_usd( satoshi ):
'''
Pre: satoshi is a Decimal.
Returns: A Decimal with eight significant decimal places. The value of the satoshi in USD.
'''
with localcontext() as context:
context.prec = 8
return satoshi * current_price_of_bitcoin()
评论列表
文章目录