Shopify / measured

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

Additional numeric helpers #142

Closed jmortlock closed 2 years ago

jmortlock commented 2 years ago

WHY

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

Looks like this functionality was removed way back in https://github.com/Shopify/measured/pull/49 it seems to be the reasoning was around auto-coercion of numerics caused confusion.