Companion

object Companion

Properties

Link copied to clipboard
val ONE: Weight

The unit weight 1/1.

Functions

Link copied to clipboard
fun of(n: Long): Weight

A whole-number weight n (i.e. n/1); n must be positive.

fun of(numerator: Long, denominator: Long): Weight

The reduced weight numerator/denominator; both must be positive. Reduced to lowest terms so equal ratios are structurally equal.