given_Modulo_Double

com.phasmidsoftware.number.core.inner.Modulo.given_Modulo_Double
object given_Modulo_Double extends Modulo[Double]

Given instance for Double.

Attributes

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

Members list

Value members

Concrete methods

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

Subtract two values.

Subtract two values.

Attributes

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

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

Add two values.

Add two values.

Attributes

Concrete fields

lazy val zero: Double

The zero value for this numeric type.

The zero value for this numeric type.

Attributes