BigIntDivides

com.phasmidsoftware.number.core.numerical.Divides.BigIntDivides
implicit class BigIntDivides(x: BigInt)

Implicit class to determine if a number (x) is a factor of another number (y). NOTE that for potential factors larger than an Int, you should just use % directly.

Value parameters

x

an Int.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def !|(y: Int): Boolean

Method to test if x does not divide y.

Method to test if x does not divide y.

Value parameters

y

an Int.

Attributes

Returns

false if x divides y.toLong.

def !|(y: Long): Boolean

Method to test if x does not divide y.

Method to test if x does not divide y.

Value parameters

y

a Long.

Attributes

Returns

false if x divides y.

def !|(y: BigInt): Boolean

Method to test if x does not divide y.

Method to test if x does not divide y.

Value parameters

y

a BigInt.

Attributes

Returns

false if x divides y.

def |>(y: Int): Boolean

Method to test if x divides y.

Method to test if x divides y.

Value parameters

y

an Int.

Attributes

Returns

true if x divides y.toLong.

def |>(y: Long): Boolean

Method to test if x divides y.

Method to test if x divides y.

Value parameters

y

a Long.

Attributes

Returns

true if x divides y.

def |>(y: BigInt): Boolean

Method to test if x divides y.

Method to test if x divides y.

Value parameters

y

a BigInt.

Attributes

Returns

true if x divides y.