summaryrefslogtreecommitdiff
path: root/src/set_d64.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2018-06-22 08:54:08 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2018-06-22 08:54:08 +0000
commitc9119c2ca8e0997271bc69b7d620ce2b53a7f9d2 (patch)
treecd86dd1492c302c75ac5263996eaf675c74a7838 /src/set_d64.c
parentc36b20836f6cfd3685a3c74f7b5f3929fbf515c8 (diff)
downloadmpfr-c9119c2ca8e0997271bc69b7d620ce2b53a7f9d2.tar.gz
[src/set_d64.c] added comment and space
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12814 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/set_d64.c')
-rw-r--r--src/set_d64.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/set_d64.c b/src/set_d64.c
index 718b4505d..76d2bdc9e 100644
--- a/src/set_d64.c
+++ b/src/set_d64.c
@@ -211,13 +211,14 @@ decimal64_to_string (char *s, _Decimal64 d)
}
else
{
- i = mpn_get_str ((unsigned char*)t, 10, rp, rn);
+ i = mpn_get_str ((unsigned char*) t, 10, rp, rn);
}
while (i-- > 0)
*t++ += '0';
#endif /* DPD or BID */
- exp -= 398; /* unbiased exponent */
+ exp -= 398; /* unbiased exponent: -398 = emin - (p-1) where
+ emin = 1-emax = 1-384 = -383 and p=16 */
sprintf (t, "E%d", exp);
}
#else