SmallRational

io.github.edadma.numbers.SmallRational
See theSmallRational companion class
object SmallRational

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

class IntDiv(a: Int)

Attributes

Supertypes
class Object
trait Matchable
class Any
class LongDiv(a: Long)

Attributes

Supertypes
class Object
trait Matchable
class Any

Attributes

Supertypes
trait Fractional[SmallRational]
trait Numeric[SmallRational]
trait Ordering[SmallRational]
trait PartialOrdering[SmallRational]
trait Equiv[SmallRational]
trait Serializable
trait Comparator[SmallRational]
class Object
trait Matchable
class Any
Show all
Self type

Value members

Concrete methods

def apply(s: String): SmallRational
def apply(n: Long, d: Long): SmallRational
def apply(a: Long): SmallRational
def apply(a: Int): SmallRational
def oneOver(d: Long): SmallRational
def unapply(z: Any): Option[(Long, Long)]

Concrete fields

lazy val HALF: SmallRational
lazy val ONE: SmallRational
lazy val ZERO: SmallRational

Implicits

Implicits

implicit def int2smallRational(a: Int): SmallRational
implicit def intdiv2smallRational(a: Int): IntDiv
implicit def long2smallRational(a: Long): SmallRational
implicit def longdiv2smallRational(a: Long): LongDiv