Packages

case class Rational(n: BigInt, d: BigInt) extends Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Rational
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Rational(n: BigInt, d: BigInt)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def *(r: Rational): Rational
  4. def +(r: Rational): Rational
  5. def -(r: Rational): Rational
  6. def /(r: Rational): Rational
  7. def <(rhs: Rational): Boolean
  8. def <=(rhs: Rational): Boolean
  9. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def >(rhs: Rational): Boolean
  11. def >=(rhs: Rational): Boolean
  12. val RND_MODE: RoundingMode
  13. val SCALE: Int
  14. def abs: Rational
  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. def ceil: Rational
  17. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  18. def compare(r: Rational): Int
  19. def compareToOne: Int
  20. val d: BigInt
  21. def denominator: BigInt
  22. def denominatorAbsIsValidLong: Boolean
  23. def denominatorAsLong: Long
  24. def denominatorIsValidLong: Boolean
  25. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. def equals(that: Any): Boolean
    Definition Classes
    Rational → Equals → AnyRef → Any
  27. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  28. def floor: Rational
  29. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  30. def hashCode(): Int
    Definition Classes
    Rational → AnyRef → Any
  31. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  32. def isOne: Boolean
  33. def isValidByte: Boolean
  34. def isValidChar: Boolean
  35. def isValidInt: Boolean
  36. def isValidLong: Boolean
  37. def isValidShort: Boolean
  38. def isWhole: Boolean
  39. def isZero: Boolean
  40. def max(rhs: Rational): Rational
  41. def min(rhs: Rational): Rational
  42. val n: BigInt
  43. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  44. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  45. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  46. def numerator: BigInt
  47. def numeratorAbsIsValidLong: Boolean
  48. def numeratorAsLong: Long
  49. def numeratorIsValidLong: Boolean
  50. def pow(exp: Int): Rational
  51. def ratPow(num: Int, denom: Int): Rational
  52. def reciprocal: Rational
  53. def round: Rational
  54. def signum: Int
  55. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  56. def toBigDecimal(scale: Int, mode: RoundingMode): BigDecimal
  57. def toBigInt: BigInt
  58. def toInt: Int
  59. def toString(): String
    Definition Classes
    Rational → AnyRef → Any
  60. def unary_-: Rational
  61. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  62. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  63. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped