Commit Graph

22 Commits

Author SHA1 Message Date
Araq
6c022f4500 made test green for 32bit system 2016-09-30 22:14:29 +02:00
def
834ad57d94 Fix toRational overflow by calculating internally with int64s (fixes #4194) 2016-05-22 18:09:55 +02:00
pgkos
ef889a1009 Fixed a typo in proc -(x: T, y: Rational[T]) 2016-03-18 16:59:15 +01:00
JamesP
77d4788655 Add toRational(float) conversion from any float to closest
approx for specified precision
2015-10-04 15:58:02 +10:00
JamesP
2f4cc4efce add a few type checks to limit type to SomeInteger
(adding a compund type to the Rational type definition
made it too difficult to define new variables
using integer literals)
2015-10-01 15:07:23 +10:00
JamesP
d6b7f0ad9e add assertion for zero denominator 2015-10-01 15:02:46 +10:00
Adam Strzelecki
43bddf62dd lib: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:03:56 +02:00
pdw
d18e18060e lib/pure/p-t - Dropped 'T' from types 2015-06-04 13:18:36 +02:00
Andreas Rumpf
dfc3f9dcd7 Merge pull request #2486 from endragor/rational-hash
Add hash proc for Rational
2015-04-08 09:58:06 +02:00
Ruslan Mustakov
35f5ac2811 Added procvar pragma to rationals.cmp 2015-04-08 01:21:58 +06:00
Ruslan Mustakov
46e6fd4fa9 Added hash proc for Rational 2015-04-08 00:52:20 +06:00
def
bba2f7b0f1 Fix toRational 2015-04-07 00:36:16 +02:00
def
4dbb582311 Add for rationals 2015-02-27 20:46:05 +01:00
def
75959a0fb3 Add for easier intialization of rationals 2015-02-27 20:38:53 +01:00
def
77f506bd70 Make Rational an object 2015-02-24 19:54:27 +01:00
def
f710a31344 Make rationals generic 2015-02-20 12:21:09 +01:00
def
f6c83c32f3 Fix typo 2015-02-19 13:57:31 +01:00
def
c377e6883c Change author of rationals module 2015-02-19 10:54:38 +01:00
def
2d004dd677 Update toInt doc 2015-02-16 20:44:24 +01:00
def
444beab5dd Fix division and add tests 2015-02-16 20:44:24 +01:00
def
a85b6fd3fe Change rationals.toInt behaviour 2015-02-16 20:44:24 +01:00
def
aa4d119e8c Move rational.nim to rationals.nim 2015-02-16 20:44:24 +01:00