summary refs log tree commit diff stats
path: root/lib/pure/rationals.nim
Commit message (Collapse)AuthorAgeFilesLines
* 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
| | | | approx for specified precision
* add a few type checks to limit type to SomeIntegerJamesP2015-10-011-3/+3
| | | | | | (adding a compund type to the Rational type definition made it too difficult to define new variables using integer literals)
* add assertion for zero denominatorJamesP2015-10-011-0/+1
|
* lib: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-1/+1
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* 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
|\ | | | | Add hash proc for Rational
| * 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