summaryrefslogtreecommitdiff
path: root/tests/ttan.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2003-11-21 15:27:35 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2003-11-21 15:27:35 +0000
commit41d7b44241b63a451c3e664bdd9a640a4c255291 (patch)
tree6a82613a3cf86ab03825e93e2987ad51e8ab58a6 /tests/ttan.c
parent1cd11b42766c57e2118aac4ffe5219fac353904d (diff)
downloadmpfr-41d7b44241b63a451c3e664bdd9a640a4c255291.tar.gz
+ Add new internal function: mpfr_check.
+ Add the corresponding test file. + Translate mpfr_set_d to mpfr_set_str / mpfr_set_ui in the tests for portability reasons. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2562 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/ttan.c')
-rw-r--r--tests/ttan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ttan.c b/tests/ttan.c
index 8e6894050..9b15ea9f6 100644
--- a/tests/ttan.c
+++ b/tests/ttan.c
@@ -80,7 +80,7 @@ main(int argc, char *argv[])
mpfr_init (x);
mpfr_set_prec (x, 2);
- mpfr_set_d (x, 0.5, GMP_RNDN);
+ mpfr_set_str (x, "0.5", 10, GMP_RNDN);
mpfr_tan (x, x, GMP_RNDD);
if (mpfr_get_d1 (x) != 0.5)
{