README.md in ruby-units-2.1.0 vs README.md in ruby-units-2.2.0

- old
+ new

@@ -5,10 +5,17 @@ Kevin C. Olbrich, Ph.D. Project page: [http://github.com/olbrich/ruby-units](http://github.com/olbrich/ruby-units) +Notes +----- + +This version removes 'mathn' as a dependency. Mathn alters the behavior of some mathematical operators, which +frequently causes unexpected behavior and can be a source of difficult to diagnose bugs. Mathn is also scheduled to be removed from +the Ruby standard library. + Introduction ------------ Many technical applications make use of specialized calculations at some point. Frequently, these calculations require unit conversions to ensure accurate results. Needless to say, this is a pain to properly keep track of, and is prone to numerous errors. @@ -273,19 +280,9 @@ 1. separator (true/false): should a space be used to separate the scalar from the unit part during output. ### NOTES - -#### Mathn - -Note that the current implementation of ruby-units requires 'mathn' from the ruby standard library. -This tends to change the behavior of integer math in ways that many people do not expect, and can be the source -of numerous bugs and odd behaviors. If you encounter what appears to be a bug in your code that seems to be related - -to the use of ruby-units, try to reproduce the bug by just including 'mathn' by itself. - -If you identify a bug in a gem or code that uses mathn, please file a bug report or create a pull request to fix it. #### Performance vs. Accuracy Ruby units was originally intended to provide a robust and accurate way to do arbitrary unit conversions. In some cases, these conversions can result in the creation and garbage collection of a lot of intermediate objects during