commit | c2e0893b93f23a69273019f56859a47acfa051b5 | [log] [tgz] |
---|---|---|
author | Stefan Eßer <se@freebsd.org> | Mon Apr 29 14:11:31 2019 -0600 |
committer | Gavin Howard <yzena.tech@gmail.com> | Mon Apr 29 14:11:31 2019 -0600 |
tree | b11601ebe1f3334e813a8db919a1aa8194169415 | |
parent | 4276af48faa8b4c1fef5ef39b9613d1fcaf47f17 [diff] [blame] |
Fix printing exponential form
diff --git a/src/num.c b/src/num.c index f91b728..f41cd22 100644 --- a/src/num.c +++ b/src/num.c
@@ -1515,7 +1515,7 @@ if (BC_ERROR_SIGNAL_ONLY(s)) goto exit; } else { - places = bc_num_int(n) - 1; + places = bc_num_int_digits(n) - 1; mod = places % 3; if (eng && mod != 0) places -= 3 - (3 - mod); s = bc_num_shiftRight(&temp, places);