예제 #1
0
 public void RationalSign()
 {
     using (var a = new HugeRational("-222509832503450298345029835740293845721/115756986668303657898962467957"))
     {
         Assert.AreEqual(-1, a.Sign());
         Assert.AreEqual(1, (-a).Sign());
         Assert.AreEqual(0, (a - a).Sign());
     }
 }
예제 #2
0
 public void RationalSign()
 {
     using (var a = new HugeRational("-222509832503450298345029835740293845721/115756986668303657898962467957"))
     {
         Assert.AreEqual(-1, a.Sign());
         Assert.AreEqual(1, (-a).Sign());
         Assert.AreEqual(0, (a-a).Sign());
     }
 }