Thanks to visit codestin.com
Credit goes to github.com

Skip to content

matthewjones372/unit-fun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scratch Project having fun with unit conversions

Given a list of facts such as;

- ("hr", "min", 60)
- ("min", "second", 60)
- ("second", "ms", 1000)

and a query such as ("hr", "ms", 5) we can convert between units.

Examples
query ("hr", "ms", 5) -> 3.6e+6 (approximately)
Note there's no need to repeat a fact, we should be able to convert backwards

Given facts:

- ("hr", "min", 60)
- ("min", "second", 60)
- ("second", "ms", 1000)

we can convert ms to hr

About

Scratch Unit Conversion Project in Scala

Resources

Stars

Watchers

Forks

Languages