Rational

io.github.edadma.numbers.Rational
See theRational companion class
object Rational

Attributes

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

Members list

Type members

Classlikes

class IntDiv(a: Int)

Attributes

Supertypes
class Object
trait Matchable
class Any

Attributes

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

Value members

Concrete methods

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

Concrete fields

lazy val ONE: Rational
lazy val ZERO: Rational

Implicits

Implicits

implicit def bigint2rational(a: BigInt): Rational
implicit def int2rational(a: Int): Rational
implicit def intdiv2rational(a: Int): IntDiv