blazingkin/blz-ospl

Unit Package (Metric / Imperial)

blazingkin opened this issue · 0 comments

This package helps handle conversion between units and checks that units are properly used.

e.g.

kg(40).plus(lb(10)) should give a reasonable answer (doesn't have to be that interface, but that seems the easiest to implement)

And

kg(40).is_metric?() should be true, but lb(10).is_metric?() should be false