satoshi_to_usd.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:cryptocurrency-trader 作者: TobCar 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号