summaryrefslogtreecommitdiff
path: root/gmp.texi
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2001-11-28 20:56:14 +0100
committertege <tege@gmplib.org>2001-11-28 20:56:14 +0100
commitce4044a82d6e89a8bfa6526a87bac540e8fcbaad (patch)
treee0e2cb60b9d2bd229350da2f3466172e61b87b39 /gmp.texi
parente883fe12673d4f3781733f044e269559ead1ca58 (diff)
downloadgmp-ce4044a82d6e89a8bfa6526a87bac540e8fcbaad.tar.gz
Document mpz_get_d_2exp and mpf_get_d_2exp.
Diffstat (limited to 'gmp.texi')
-rw-r--r--gmp.texi11
1 files changed, 11 insertions, 0 deletions
diff --git a/gmp.texi b/gmp.texi
index d1f29f5bb..5e6f9a2b2 100644
--- a/gmp.texi
+++ b/gmp.texi
@@ -2466,6 +2466,11 @@ the function @code{mpz_fits_slong_p}.
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
+approximation to @var{op}.
+@end deftypefun
+
@deftypefun {char *} mpz_get_str (char *@var{str}, int @var{base}, mpz_t @var{op})
Convert @var{op} to a string of digits in base @var{base}. The base may vary
from 2 to 36.
@@ -3741,6 +3746,12 @@ set by @code{mpf_set_default_prec}.
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
+approximation to @var{op}. This is similar to the standard C function
+@code{frexp}.
+@end deftypefun
+
@deftypefun long mpf_get_si (mpf_t @var{op})
@deftypefunx {unsigned long} mpf_get_ui (mpf_t @var{op})
Convert @var{op} to a @code{long} or @code{unsigned long}, truncating any