Skip to content
/ kuants Public

A Kotlin API for Quantities and Units of Measure inspired by Squants

Notifications You must be signed in to change notification settings

evacchi/kuants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kuants

A Kotlin API for Quantities and Units of Measure inspired by Squants

Example:

    val x: Length = Meters(10.0)
    val y: Length = Meters(20.0)
    val z: Length = Meters(30.0)

    val area: Area = x * y
    println(area)

    val volume: Volume = x * y * z
    println(volume)

    println(volume to Litres)
    
    // val x = area + volume // type error!

About

A Kotlin API for Quantities and Units of Measure inspired by Squants

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages