summaryrefslogtreecommitdiff
path: root/get_d.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2003-07-15 14:42:08 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2003-07-15 14:42:08 +0000
commit13d64b28f20410d6c11569663b54fbf95b198a60 (patch)
tree7c96366e48696caffaaacb6cc506e798ba149a87 /get_d.c
parenta912b8b20d8e2e7e5ec13d9f3500e7daf2b13bac (diff)
downloadmpfr-13d64b28f20410d6c11569663b54fbf95b198a60.tar.gz
Updated comment.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2381 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'get_d.c')
-rw-r--r--get_d.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/get_d.c b/get_d.c
index 571e94e9d..75e074a68 100644
--- a/get_d.c
+++ b/get_d.c
@@ -207,9 +207,8 @@ mpfr_get_d3 (mpfr_srcptr src, mp_exp_t e, mp_rnd_t rnd_mode)
d = 1.0;
else
{
- /* Warning: the rounding may still be incorrect in the rounding
- to the nearest mode when the result is a subnormal because of
- a double rounding (-> 53 bits -> final precision). */
+ /* The following computations are exact thanks to the previous
+ mpfr_round_raw. */
d = (double) tp[0] / MP_BASE_AS_DOUBLE;
for (i = 1; i <= np; i++)
d = (d + tp[i]) / MP_BASE_AS_DOUBLE;