summaryrefslogtreecommitdiff
path: root/print_raw.c
diff options
context:
space:
mode:
authorhanrot <hanrot@280ebfd0-de03-0410-8827-d642c229c3f4>2003-02-24 12:32:56 +0000
committerhanrot <hanrot@280ebfd0-de03-0410-8827-d642c229c3f4>2003-02-24 12:32:56 +0000
commit76014a241d9a7e4c2372b3db3a23f00f7f630055 (patch)
tree52c2d3069478cc1bce70c955cc9ee17c972d8748 /print_raw.c
parentad3bb5fb96a080649f2373149fd17114d03ee29a (diff)
downloadmpfr-76014a241d9a7e4c2372b3db3a23f00f7f630055.tar.gz
Replaced NaN, Inf by @NaN@, @Inf@ [for bases > 24].
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2249 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'print_raw.c')
-rw-r--r--print_raw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print_raw.c b/print_raw.c
index 06617fab4..4622ff764 100644
--- a/print_raw.c
+++ b/print_raw.c
@@ -64,9 +64,9 @@ mpfr_print_binary (mpfr_srcptr x)
char *str;
unsigned long alloc_size;
- if (MPFR_IS_NAN(x)) printf("NaN");
+ if (MPFR_IS_NAN(x)) printf("@NaN@");
else if (MPFR_IS_INF(x)) {
- if (MPFR_SIGN(x) == 1) { printf("Inf"); } else printf("-Inf");
+ if (MPFR_SIGN(x) == 1) { printf("@Inf@"); } else printf("-@Inf@");
}
else if (!MPFR_NOTZERO(x)) {
if (MPFR_SIGN(x) < 0) printf("-");