given_Modulo_Int

com.phasmidsoftware.number.core.inner.Modulo.given_Modulo_Int
object given_Modulo_Int extends Modulo[Int]

Given instance for Int.

Attributes

Graph
Supertypes
trait Modulo[Int]
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def compare(x: Int, y: Int): Int

Compare two values. Returns negative if x < y, zero if x == y, positive if x > y.

Compare two values. Returns negative if x < y, zero if x == y, positive if x > y.

Attributes

def minus(x: Int, y: Int): Int

Subtract two values.

Subtract two values.

Attributes

def mod(x: Int, m: Int): Int

Compute the modulo of x with respect to m. The result should always be in the range [0, m) for positive m.

Compute the modulo of x with respect to m. The result should always be in the range [0, m) for positive m.

Value parameters

m

the modulus

x

the value to normalize

Attributes

Returns

x mod m

def plus(x: Int, y: Int): Int

Add two values.

Add two values.

Attributes

Concrete fields

lazy val zero: Int

The zero value for this numeric type.

The zero value for this numeric type.

Attributes