summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2001-11-29 14:53:40 +0100
committertege <tege@gmplib.org>2001-11-29 14:53:40 +0100
commit13cb1f93dd58172a5a3507a5c390441ad9322a60 (patch)
treef1fd47484c9ca238f7e3f4752f8d78d9bbace6de
parent72f156be56b5b66b66235d7d5d1aee377f626353 (diff)
downloadgmp-13cb1f93dd58172a5a3507a5c390441ad9322a60.tar.gz
Fix docs for mpz_get_d_2exp an mpf_get_d_2exp.
-rw-r--r--gmp.texi6
1 files changed, 4 insertions, 2 deletions
diff --git a/gmp.texi b/gmp.texi
index e0ffb6d00..b0393e450 100644
--- a/gmp.texi
+++ b/gmp.texi
@@ -2467,7 +2467,8 @@ Convert @var{op} to a @code{double}.
@end deftypefun
@deftypefun double mpz_get_d_2exp (signed long int @var{exp}, mpz_t @var{op})
-Find @var{d} <= 0.5 and @var{exp} such that @var{d} * 2**@var{exp} is a good
+Find @var{d} and @var{exp} such that @m{@var{d}\times 2^{exp}, @var{d} times 2
+raised to @var{exp}}, with @ma{0.5@le{}@GMPabs{@var{d}}<1}, is a good
approximation to @var{op}.
@end deftypefun
@@ -3745,7 +3746,8 @@ Convert @var{op} to a @code{double}.
@end deftypefun
@deftypefun double mpf_get_d_2exp (signed long int @var{exp}, mpf_t @var{op})
-Find @var{d} <= 0.5 and @var{exp} such that @var{d} * 2**@var{exp} is a good
+Find @var{d} and @var{exp} such that @m{@var{d}\times 2^{exp}, @var{d} times 2
+raised to @var{exp}}, with @ma{0.5@le{}@GMPabs{@var{d}}<1}, is a good
approximation to @var{op}. This is similar to the standard C function
@code{frexp}.
@end deftypefun