Rational

class Rational

Constructors

Link copied to clipboard
constructor(numerator: Long, denominator: Long)
constructor(numerator: Long, denominator: Int)
constructor(numerator: Int, denominator: Long)
constructor(numerator: Int, denominator: Int)
constructor(numerator: Long)
constructor(numerator: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun Rational.div(other: Rational): Rational
open operator override fun Rational.div(other: Int): Rational
open operator override fun Rational.div(other: Long): Rational
Link copied to clipboard
open infix fun Rational.eq(other: Rational): Boolean
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open infix override fun Rational.equalsTo(other: Rational): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun Rational.isOne(): Boolean
Link copied to clipboard
open override fun Rational.isZero(): Boolean
Link copied to clipboard
open operator override fun Rational.minus(other: Rational): Rational
open operator override fun Rational.minus(other: Int): Rational
open operator override fun Rational.minus(other: Long): Rational
Link copied to clipboard
open infix fun Rational.neq(other: Rational): Boolean
Link copied to clipboard
open infix fun Rational.notEqualsTo(other: Rational): Boolean
Link copied to clipboard
open operator override fun Rational.plus(other: Rational): Rational
open operator override fun Rational.plus(other: Int): Rational
open operator override fun Rational.plus(other: Long): Rational
Link copied to clipboard
open infix fun Rational.pow(exponent: Int): Rational
open infix fun Rational.pow(exponent: Long): Rational
open infix fun Rational.pow(exponent: UInt): Rational
open infix fun Rational.pow(exponent: ULong): Rational
Link copied to clipboard
open operator override fun Rational.times(other: Rational): Rational
open operator override fun Rational.times(other: Int): Rational
open operator override fun Rational.times(other: Long): Rational
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open operator override fun Rational.unaryMinus(): Rational
Link copied to clipboard
open operator fun Rational.unaryPlus(): Rational