summary refs log tree commit diff stats
path: root/lib/pure/rationals.nim
Commit message (Expand)AuthorAgeFilesLines
* CIs: attempt to use csources_v1 (#16282)Andreas Rumpf2021-04-211-1/+1
* close #16921 (#16951)flywind2021-02-061-30/+29
* Improve doc comments (#16902)konsumlamm2021-02-021-85/+123
* rationals.nim: Use `func` everywhere (#16302)ee72020-12-091-41/+41
* move tests to testament (#16101)flywind2020-11-241-97/+0
* 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
href='#n418'>418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605