given_Modulo_BigDecimal

com.phasmidsoftware.number.core.inner.Modulo.given_Modulo_BigDecimal
object given_Modulo_BigDecimal extends Modulo[BigDecimal]

Given instance for BigDecimal.

Attributes

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

Members list

Value members

Concrete methods

def compare(x: BigDecimal, y: BigDecimal): 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: BigDecimal, y: BigDecimal): BigDecimal

Subtract two values.

Subtract two values.

Attributes

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

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: BigDecimal, y: BigDecimal): BigDecimal

Add two values.

Add two values.

Attributes

def zero: BigDecimal

The zero value for this numeric type.

The zero value for this numeric type.

Attributes