From 90b28c68e6fefe28bc969e0279ef1d6445cf4b13 Mon Sep 17 00:00:00 2001 From: "Paul J. Davis" Date: Sun, 24 Feb 2013 22:10:27 -0600 Subject: [PATCH] Bug fix for large doubles with a fraction My truth table was a bit busted for extreme value doubles. --- c_src/decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c_src/decoder.c b/c_src/decoder.c index 985a647..604a310 100644 --- a/c_src/decoder.c +++ b/c_src/decoder.c @@ -561,7 +561,7 @@ parse: if(!has_frac && !has_exp) { num_type = d->atoms->atom_bignum; - } else if(has_exp) { + } else if(!has_frac && has_exp) { num_type = d->atoms->atom_bignum_e; } else { num_type = d->atoms->atom_bigdbl;