fraction 0.3 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/fraction.c +0 -12
  2. metadata +3 -2
data/fraction.c CHANGED
@@ -63,18 +63,6 @@ void core_fraction(double val, long maxden, long * n, long * d, double * e)
63
63
  long sign = 1;
64
64
  long m11 = 1, m22 = 1;
65
65
  long m12 = 0, m21 = 0;
66
- if (val == NAN) {
67
- *n = NAN;
68
- *d = NAN;
69
- *e = NAN;
70
- return;
71
- }
72
- if (val == INFINITY) {
73
- *n = INFINITY;
74
- *d = 1.0;
75
- *e = 0.0;
76
- return;
77
- }
78
66
  if (val < 0.0) {
79
67
  // work in positive space, it seems we can get confused by negatives
80
68
  sign = -1;
metadata CHANGED
@@ -5,7 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- version: "0.3"
8
+ - 1
9
+ version: 0.3.1
9
10
  platform: ruby
10
11
  authors:
11
12
  - Christopher Lord
@@ -15,7 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2011-05-23 00:00:00 -04:00
19
+ date: 2011-05-30 00:00:00 -04:00
19
20
  default_executable:
20
21
  dependencies: []
21
22