Lightweight Kotlin library for operations on various units
- Add following lines to your settings.gradle.kts
sourceControl{ gitRepository(uri("https://github.com/KamilKurde/Kalc.git")) { producesModule("com.KamilKurde:Kalc") } }
- Add following lines to your build.gradle.kts dependencies
implementation("com.soywiz.korlibs.kbignum:kbignum:2.0.6") implementation("com.KamilKurde:Kalc") { version { branch = "main" } }
- Run gradle assemble task
- Sync gradle
- Pick row corresponding to first part of operation
- Check presence of operation symbol ('*' for multiplying and '/' for dividing) for column corresponding to second part of operation
- If the symbol is there, this means that operation is supported, and you can hover on the symbol to get knowledge of returned type
- For Area * Distance you first pick row corresponding to Area (second row of the table)
- Then lookup to Distance column (forth column)
- In this example you can hover on '*' symbol representing multiplying to get info of resulting type (Volume)
Number | Area | Data | Density | Distance | Mass | Operations | OperationSpeed | Speed | Time | Transfer | Volume |
---|---|---|---|---|---|---|---|---|---|---|---|
Area | * | ||||||||||
Data | / | ||||||||||
Density | * | ||||||||||
Distance | * | * | / | / | |||||||
Mass | / | / | |||||||||
Operations | / | / | |||||||||
OperationSpeed | * | ||||||||||
Speed | * | ||||||||||
Time | * | ||||||||||
Transfer | |||||||||||
Volume | * |