commit | 1a503e62ff9e642740577f8df68e439a1b9e1d10 | [log] [tgz] |
---|---|---|
author | Stefan Esser <se@freebsd.org> | Sat May 04 17:05:12 2019 +0200 |
committer | Stefan Esser <se@freebsd.org> | Sat May 04 17:05:12 2019 +0200 |
tree | 2ff42d7e8ec0c8ed8eda9f6118e806956b34ff19 | |
parent | 017f0c843a3439651ce310cdb6ffc90cc09f6203 [diff] [blame] |
Fix printing of fractional parts for obase > 10
diff --git a/src/num.c b/src/num.c index 99215fc..96958f7 100644 --- a/src/num.c +++ b/src/num.c
@@ -1826,7 +1826,7 @@ bc_num_one(&frac_len); bc_num_createCopy(&intp, n); - bc_num_truncate(&intp, intp.rdx); + bc_num_truncate(&intp, intp.scale); s = bc_num_sub(n, &intp, &fracp, 0); if (BC_ERROR_SIGNAL_ONLY(s)) goto err;