Example #1
0
 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);
         }
 }
Example #2
0
File: Math.cs Project: wbhart/mpir
 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);
     }
 }