core-lightning/contrib/pylightning/lightning
Michael Schmoock d8599e5f67 pylightning: adds msat.to_approx_str() method
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'
```
2019-05-22 22:13:06 +02:00
..
__init__.py pylightning: allow version querying from within modules. 2019-03-05 11:43:22 +01:00
lightning.py pylightning: adds msat.to_approx_str() method 2019-05-22 22:13:06 +02:00
plugin.py pylightning: Clean up the argument binding 2019-05-10 23:07:49 +00:00