io.github.iltotore.iron.numeric

Type members

Classlikes

object Main
object NumberOrdering extends InlinedOrdering[Number]

An InlineOrdering instance for Number

An InlineOrdering instance for Number

object constraint
final class test

Types

type Number = Byte | Short | Int | Long | Float | Double

Represents a union of all numerical primitives. This abstraction facilitates the creation of numerical constraints.

Represents a union of all numerical primitives. This abstraction facilitates the creation of numerical constraints.

Value members

Concrete methods

inline def modulo(x: Number, y: Number): Int

A Number-supported modulo. Only supports non-floating primitives.

A Number-supported modulo. Only supports non-floating primitives.

Value Params
x

the dividend

y

the divisor

Returns

the remainder of the Euclidian Division