public void FloatCeiling() { using (var a = new HugeFloat("-9023409872309847509847.9385345098345")) using (var b = new HugeFloat()) { b.Value = a.Ceiling(); FloatAssert.AreEqual("-9023409872309847509847", b); b.Value = (-a).Ceiling(); FloatAssert.AreEqual("9023409872309847509848", b); } }
public void FloatCeiling() { using(var a = new HugeFloat("-9023409872309847509847.9385345098345")) using(var b = new HugeFloat()) { b.Value = a.Ceiling(); FloatAssert.AreEqual("-9023409872309847509847", b); b.Value = (-a).Ceiling(); FloatAssert.AreEqual("9023409872309847509848", b); } }