final case class BigRational extends Comparable[BigRational] with Ordered[BigRational] with Product with Serializable
Arbitrary precision Rational number.
Numerator is a BigInteger; denominator is a non-zero BigInteger. If numerator is zero, resulting BigRational is zero (denominator is ignored).
Representation is canonical: - sign of the BigRational is kept in the numerator; - denominator is always positive; - numerator and denominator do not have common divisors.
- Alphabetic
- By Inheritance
- BigRational
- Serializable
- Product
- Equals
- Ordered
- Comparable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def *(that: BigRational): BigRational
- def +(that: BigRational): BigRational
- def -(that: BigRational): BigRational
- def /(that: BigRational): BigRational
- def <(that: BigRational): Boolean
- Definition Classes
- Ordered
- def <=(that: BigRational): Boolean
- Definition Classes
- Ordered
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def >(that: BigRational): Boolean
- Definition Classes
- Ordered
- def >=(that: BigRational): Boolean
- Definition Classes
- Ordered
- def abs: BigRational
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def compare(that: BigRational): Int
- Definition Classes
- BigRational → Ordered
- def compareTo(that: BigRational): Int
- Definition Classes
- Ordered → Comparable
- val denominator: BigInt
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def fraction: BigRational
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def invert: BigRational
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isNegative: Boolean
- def isPositive: Boolean
- def isZero: Boolean
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val numerator: BigInt
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def round: Int
- def signum: Int
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toDouble: Double
- def toString(): String
- Definition Classes
- BigRational → AnyRef → Any
- def unary_-: BigRational
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def whole: Int
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated