Add fr uom

This commit is contained in:
2021-06-15 13:20:30 +02:00
parent 536d095b96
commit 57edc59853
2 changed files with 4 additions and 1 deletions

View File

@@ -25,6 +25,7 @@ open class Measurement(
fun pc(nr: Double) = nr.pc
fun cm(nr: Int) = nr.cm
fun cm(nr: Double) = nr.cm
fun fr(nr: Int) = nr.fr
}
}
@@ -64,6 +65,8 @@ val Int.pc: Measurement
get() = Measurement("${this}pc")
val Int.cm: Measurement
get() = Measurement("${this}cm")
val Int.fr: Measurement
get() = Measurement("${this}fr")
fun Int.px(): Measurement = Measurement.px(this)