コード例 #1
0
ファイル: MathExtensions.cs プロジェクト: Unnar/SharpBag
 /// <summary>
 /// Whether the current instance is divisable by all the specified numbers.
 /// </summary>
 /// <param name="i">The current instance.</param>
 /// <param name="from">The smallest number.</param>
 /// <param name="to">The largest number.</param>
 /// <returns>Whether the current instance is divisable by all the specified numbers.</returns>
 public static bool IsDivisableBy(this BigInteger i, BigInteger from, BigInteger to)
 {
     return i.IsDivisableBy(from.To(to));
 }