Rational

The rational data type of EXIF tag. Contains a pair of longs representing the numerator and denominator of a Rational number.

open class Rational

Constructors

Rational
Link copied to clipboard

Create a Rational with a given numerator and denominator.

open fun Rational(nominator: Long, denominator: Long)
Rational
Link copied to clipboard

Create a copy of a Rational.

open fun Rational(r: Rational)

Functions

equals
Link copied to clipboard
open fun equals(obj: Any): Boolean
getDenominator
Link copied to clipboard

Gets the denominator of the rational

open fun getDenominator(): Long
getNumerator
Link copied to clipboard

Gets the numerator of the rational.

open fun getNumerator(): Long
toDouble
Link copied to clipboard

Gets the rational value as type double. Will cause a divide-by-zero error if the denominator is 0.

open fun toDouble(): Double
toString
Link copied to clipboard
open fun toString(): String