mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-29 01:55:45 +01:00
d8599e5f67
Tries to return the approxmost posible string of a Millisatoshi amount using various unit representations. The function will round to an effective number of digits. Default: 3. ``` >>> Millisatoshi("100000sat").to_approx_str() '0.001btc' >>> Millisatoshi("100msat").to_approx_str() '0.1sat' >>> Millisatoshi("10000000sat").to_approx_str() '0.1btc' ``` |
||
---|---|---|
.. | ||
__init__.py | ||
lightning.py | ||
plugin.py |