
Library facilitates handling and conversion of various physical measurement units like energy, length, mass, and volume. Simplifies unit operations with intuitive syntax and support for test fixtures.
Simple Kotlin Multiplatform library which supports different types of units of measure and
First, add a dependency to this library.
// build.gradle.kts
dependencies {
implementation("io.github.john-tuesday:measure:$version")
// Optional, adds test fixtures
testImplementation("io.github.john-tuesday:measure-test:$version")
}Now, use the library!
val quarterGrams: Mass = 5.67.grams
val quarterOz: Mass = 0.2.ounces
val twoQuarters = quarterGrams + quarterOzGenerated api documentation can be found here, and notes on conventions can be found here.
Simple Kotlin Multiplatform library which supports different types of units of measure and
First, add a dependency to this library.
// build.gradle.kts
dependencies {
implementation("io.github.john-tuesday:measure:$version")
// Optional, adds test fixtures
testImplementation("io.github.john-tuesday:measure-test:$version")
}Now, use the library!
val quarterGrams: Mass = 5.67.grams
val quarterOz: Mass = 0.2.ounces
val twoQuarters = quarterGrams + quarterOzGenerated api documentation can be found here, and notes on conventions can be found here.