summary refs log tree commit diff stats
path: root/lib/pure/rationals.nim
Commit message (Expand)AuthorAgeFilesLines
* [backport] run nimpretty on numbers stuffnarimiran2019-09-301-47/+48
* last stdlib cleanupsAraq2019-09-211-10/+10
* Support `div`, `mod`, floorDiv and floorMod for Rationals (#7918)Koki Fushimi2018-06-011-0/+36
* Use safe limit for toRational(float, int) (#7021)Sergey Avseyev2018-01-031-3/+8
* Make toRational proc to loop through integers (#6633)konqoro2017-10-301-18/+15
* make tests green againAndreas Rumpf2017-10-301-2/+2
* rationals.toRational now uses an algorithm based on continued fractions; refs...Andreas Rumpf2017-10-301-45/+32
* made test green for 32bit systemAraq2016-09-301-1/+1
* Fix toRational overflow by calculating internally with int64s (fixes #4194)def2016-05-221-11/+11
* Fixed a typo in proc `-`(x: T, y: Rational[T])pgkos2016-03-181-1/+1
* Add toRational(float) conversion from any float to closestJamesP2015-10-041-0/+62
* add a few type checks to limit type to SomeIntegerJamesP2015-10-011-3/+3
* add assertion for zero denominatorJamesP2015-10-011-0/+1
* lib: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-1/+1
* lib/pure/p-t - Dropped 'T' from typespdw2015-06-041-2/+2
* Merge pull request #2486 from endragor/rational-hashAndreas Rumpf2015-04-081-0/+14
|\
| * Added hash proc for RationalRuslan Mustakov2015-04-081-0/+14
* | Added procvar pragma to rationals.cmpRuslan Mustakov2015-04-081-1/+1
|/
* Fix toRationaldef2015-04-071-2/+2
* Add for rationalsdef2015-02-271-0/+4
* Add for easier intialization of rationalsdef2015-02-271-26/+32
* Make Rational an objectdef2015-02-241-31/+36
* Make rationals genericdef2015-02-201-28/+33
* Fix typodef2015-02-191-1/+1
* Change author of rationals moduledef2015-02-191-1/+1
* Update toInt docdef2015-02-161-2/+2
* Fix division and add testsdef2015-02-161-15/+42
* Change rationals.toInt behaviourdef2015-02-161-4/+4
* Move rational.nim to rationals.nimdef2015-02-161-0/+228
ray.cc?h=main&id=9a14c914d61b7f1a455737dd6aebe0125b66ed33'>^
35064671 ^
46026f62 ^

7e9c6925 ^
827898fc ^
3076bab4 ^
a55bbd06 ^
7284d503 ^

88be3dbc ^
7e9c6925 ^
5497090a ^



afa42503 ^
7e9c6925 ^
7e9c6925 ^

88be3dbc ^
07d35c4a ^
5497090a ^




afa42503 ^
07d35c4a ^
07d35c4a ^

1848b18f ^

a55bbd06 ^
363be37f ^
a55bbd06 ^

07d35c4a ^
0487a30e ^
35064671 ^
ac0e9db5 ^
46026f62 ^
35064671 ^
46026f62 ^

0487a30e ^
35064671 ^
fca0ebbe ^
363be37f ^
35064671 ^

551d155c ^
35064671 ^
551d155c ^


ac0e9db5 ^
35064671 ^

e853b94e ^
827898fc ^
7e9c6925 ^
0487a30e ^
a55bbd06 ^


7e9c6925 ^
363be37f ^

7e9c6925 ^

551d155c ^
a55bbd06 ^
5497090a ^



551d155c ^

a55bbd06 ^
551d155c ^






























a55bbd06 ^
7284d503 ^
1848b18f ^
551d155c ^
1848b18f ^
5497090a ^



551d155c ^
1848b18f ^
551d155c ^
1848b18f ^


a55bbd06 ^
363be37f ^
a55bbd06 ^

0487a30e ^
ac0e9db5 ^
46026f62 ^
35064671 ^
46026f62 ^

827898fc ^
fca0ebbe ^
363be37f ^
551d155c ^
35064671 ^
551d155c ^


ac0e9db5 ^
0487a30e ^
827898fc ^
a55bbd06 ^

c8a58cdc ^
551d155c ^





























c8a58cdc ^







afa42503 ^
c8a58cdc ^





363be37f ^
c8a58cdc ^


363be37f ^
35064671 ^
c8a58cdc ^





1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251