Browse Source

param.BigRational: parse "NaN"

Necessary to allow checking whether the round-trip from BigRational
to double to BigRational was lossless.
master
Joachim Klein 8 years ago
committed by Dave Parker
parent
commit
5808421f7e
  1. 4
      prism/src/param/BigRational.java

4
prism/src/param/BigRational.java

@ -185,6 +185,10 @@ public final class BigRational implements Comparable<BigRational>
this.num = new BigInteger("-1");
this.den = new BigInteger("0");
return;
} else if (string.equals("NaN")) {
this.num = new BigInteger("0");
this.den = new BigInteger("0");
return;
}
BigInteger num;
BigInteger den;

Loading…
Cancel
Save