bcalc

cli bitcoin unit calculator
git clone git://jb55.com/bcalc
Log | Files | Refs | README | LICENSE

commit f86cdec91e099be1d3ebd305699888b99446e171
parent 19703892c6335f06b7fcb1714cd7a1ee521fbf70
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 16 Dec 2017 22:45:58 -0800

bug fix

Diffstat:
MREADME.md | 1-
Mnum.c | 2+-
2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -7,7 +7,6 @@ $ bcalc <<<'1 msat + 2 sats + 3 bits' - ## Install $ make install diff --git a/num.c b/num.c @@ -141,7 +141,7 @@ num_print(struct num *num, enum unit format) { double d = num->type == TYPE_FLOAT? num->floatval : (double)num->intval; d /= (double)msat_multiple; sprintf (buffer, "%.11f", d); - trim_zeros(buffer, 1); + trim_zeros(buffer, 12); printf("%s", buffer); }