Unit

abstract class Unit(val name: String, val factor: Long) : UnitBase

Ratio units.

Inheritors

Constructors

Link copied to clipboard
constructor(name: String, factor: Long)

Types

Link copied to clipboard

Ratio expressed in percent.

Link copied to clipboard

Ratio expressed as a unit range.

Properties

Link copied to clipboard
open override val factor: Long

The conversion factor from the internal representation of the quantity to the unit.

Link copied to clipboard
open override val name: String

The name of the unit.