summaryrefslogtreecommitdiff
path: root/src/get_d128.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2018-06-22 12:44:16 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2018-06-22 12:44:16 +0000
commita0f264d3e0978ade533e90c744eb805d64968e00 (patch)
tree79fe4c72208df34f3e2f563e10afb1b184332b53 /src/get_d128.c
parent64f15c5a66fff9771c469d769626e1ce65c3d327 (diff)
downloadmpfr-a0f264d3e0978ade533e90c744eb805d64968e00.tar.gz
[src/get_d64.c] improve comment
[src/get_d128.c] likewise git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12838 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/get_d128.c')
-rw-r--r--src/get_d128.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/get_d128.c b/src/get_d128.c
index cdd7b32f4..63763809d 100644
--- a/src/get_d128.c
+++ b/src/get_d128.c
@@ -378,9 +378,10 @@ mpfr_get_decimal128 (mpfr_srcptr src, mpfr_rnd_t rnd_mode)
}
else
{
- /* We need to store the sign (1), the significand (34), the exponent
- part (6), and the terminating null character, thus we need at least
- 42 characters in s. */
+ /* we need to store the sign (1 character), the significand (at most 34
+ characters), the exponent part (at most 6 characters for "E-6176"),
+ and the terminating null character, thus we need at least 42
+ characters in s. */
char s[42];
mpfr_get_str (s, &e, 10, 34, src, rnd_mode);
/* the smallest normal number is 1.000...000E-6143,