示例#1
0
 public void IntModLimbFunctionTruncate()
 {
     using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345"))
     {
         var b = Platform.Ui(5931690917503076532U, 593169092U);
         var expected = Platform.Select("5599417901817617409", "119445933");
         var d = a.Mod(b, RoundingModes.Truncate);
         Assert.AreEqual(expected, d.ToString());
     }
 }
示例#2
0
 public void IntModLimbFunctionNegativeFloor()
 {
     using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345"))
     {
         var b = Platform.Ui(5931690917503076532U, 593169092U);
         var expected = Platform.Select("332273015685459123", "473723159");
         var d = a.Mod(b, RoundingModes.Floor);
         Assert.AreEqual(expected, d.ToString());
     }
 }