Shopify / measured

Encapsulate measurements and their units in Ruby and Ruby on Rails.
MIT License
362 stars 28 forks source link

Additional numeric helpers #143

Closed jmortlock closed 2 years ago

jmortlock commented 3 years ago

WHY

Add useful numeric methods zero?, nonzero?, positive? and negative?

Looks like this functionality was removed way back in PR #49 it seems to be the reasoning was around auto-coercion of numeric into measured units caused confusion, I don't believe this PR reintroduces this issue.

kmcphillips commented 2 years ago

Oh you'll also need to resolve your merge conflicts.

kmcphillips commented 2 years ago

Thank you for your contribution!