summary refs log tree commit diff stats
path: root/lib/pure/rationals.nim
Commit message (Expand)AuthorAgeFilesLines
* Remove the uses of {.procvar.} pragma (#14359)Kaushal Modi2020-05-151-1/+1
* Error -> Defect for defects (#13908)Jacek Sieka2020-04-281-2/+2
* [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