public void RationalToAndFromDouble() { using (var a = new HugeRational()) { a.SetTo(-123.25); double c = a.ToDouble(); Assert.IsTrue(c.Equals(-123.25)); Assert.IsTrue(a.Equals(-123.25)); } }
public void RationalToAndFromFloat() { using (var a = new HugeRational()) { a.SetTo(-123.125f); double c = a.ToDouble(); Assert.IsTrue(-123.125 == c); Assert.IsTrue(-123.125 == a); Assert.IsTrue(-123.125f == a); } }
public void RationalToAndFromFloat() { using (var a = new HugeRational()) { a.SetTo(-123.125f); double c = a.ToDouble(); Assert.IsTrue(-123.125 == c); Assert.IsTrue(-123.125 == a); Assert.IsTrue(-123.125f == a); } }
public void RationalToAndFromDouble() { using (var a = new HugeRational()) { a.SetTo(-123.25); double c = a.ToDouble(); Assert.IsTrue(c.Equals(-123.25)); Assert.IsTrue(a.Equals(-123.25)); } }