You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
straightway 9cd202bac2 Updated to gradle 5.6.4. 1 year ago
gradle/wrapper Updated to gradle 5.6.4. 1 year ago
samples Fixed ktlint issues. 1 year ago
src Fixed ktlint issues. 1 year ago
.gitattributes Moved units module to own repository 3 years ago
.gitignore Adapted .gitignore to ignore idea project stuff. 3 years ago
Coding.md Replaced GitHub by codeberg. 1 year ago
LICENSE Moved units module to own repository 3 years ago
README.md Replaced GitHub by codeberg. 1 year ago
build.gradle Fixed ktlint issues. 1 year ago
detekt-config.yml Fixed detekt configuration and fixed or suppressed issues. 2 years ago
gradlew Moved units module to own repository 3 years ago
gradlew.bat Moved units module to own repository 3 years ago
projectDependencies.gradle Changed copyright in header: removed GitHub 1 year ago
projectSpecific.gradle Changed copyright in header: removed GitHub 1 year ago
settings.gradle Changed copyright in header: removed GitHub 1 year ago
version.gradle Changed copyright in header: removed GitHub 1 year ago

README.md

units

This kotlin library allows using numerical values with units like meter, kelvin or kilogram.

To have a number with an attached unit, use the index operator, e.g.

val temperature = 273[kelvin]

For more samples, see the samples.

Status

This software is in pre-release state. Every aspect of it may change without announcement or notification or downward compatibility. As soon as version 1.0 is reached, all subsequent changes for sub versions will be downward compatible. Breaking changes will then only occur with a new major version with according deprecation marking.

Include in gradle builds

To include this library in a gradle build, add

repositories {
    ...
    maven { url "https://pages.codeberg.org/straightway/repo" }
}

Then you can simply configure in your dependencies:

dependencies {
    compile "straightway:units:<version>"
}