We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
using Math::N
1 parent a20ac8e commit ccb8616Copy full SHA for ccb8616
1 file changed
README.md
@@ -13,6 +13,8 @@ Without mathn:
13
With mathn:
14
15
```ruby
16
+require "mathn"
17
+using Math::N
18
3 / 2 => 3/2 # Rational
19
```
20
@@ -27,14 +29,16 @@ Without mathn:
27
29
28
30
31
32
33
34
20 / 9 * 3 * 14 / 7 * 3 / 2 # => 20
35
36
37
## Global Behavioral changes
38
39
While older version of 'mathn', just by required, caused changes to
40
the behavior (and even the types) of operations on classes like
-Integer newer `mathn` introduces the refinements `Math::N`, and you
41
+Integer, newer `mathn` introduces the refinements `Math::N`, and you
42
have to enable it.
43
44
Before ruby 2.5, `mathn` was part of the ruby standard library. It was
0 commit comments