Confidence

data class Confidence(val permille: Int) : Comparable<Confidence> (source)

A confidence in thousandths, 0 to 1000, printed as 0.870. Integers keep the arithmetic and the text identical on every target.

Constructors

Link copied to clipboard
constructor(permille: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun compareTo(other: Confidence): Int
Link copied to clipboard
fun scale(factor: Int): Confidence

permille * factor / 1000, rounded down.

Link copied to clipboard
open override fun toString(): String