Commit History

Author SHA1 Message Date
  Koki Fushimi 3027ca292c Support `div`, `mod`, floorDiv and floorMod for Rationals (#7918) 6 years ago
  Sergey Avseyev 8941f5bd9c Use safe limit for toRational(float, int) (#7021) 7 years ago
  konqoro 6315c641be Make toRational proc to loop through integers (#6633) 7 years ago
  Andreas Rumpf 280dae0ffb make tests green again 7 years ago
  Andreas Rumpf 90c1b94fbe rationals.toRational now uses an algorithm based on continued fractions; refs #4968 7 years ago
  Araq 6c022f4500 made test green for 32bit system 8 years ago
  def 834ad57d94 Fix toRational overflow by calculating internally with int64s (fixes #4194) 8 years ago
  pgkos ef889a1009 Fixed a typo in proc `-`(x: T, y: Rational[T]) 8 years ago
  JamesP 77d4788655 Add toRational(float) conversion from any float to closest 9 years ago
  JamesP 2f4cc4efce add a few type checks to limit type to SomeInteger 9 years ago
  JamesP d6b7f0ad9e add assertion for zero denominator 9 years ago
  Adam Strzelecki 43bddf62dd lib: Trim .nim files trailing whitespace 9 years ago
  pdw d18e18060e lib/pure/p-t - Dropped 'T' from types 9 years ago
  Andreas Rumpf dfc3f9dcd7 Merge pull request #2486 from endragor/rational-hash 9 years ago
  Ruslan Mustakov 35f5ac2811 Added procvar pragma to rationals.cmp 9 years ago
  Ruslan Mustakov 46e6fd4fa9 Added hash proc for Rational 9 years ago
  def bba2f7b0f1 Fix toRational 9 years ago
  def 4dbb582311 Add for rationals 10 years ago
  def 75959a0fb3 Add for easier intialization of rationals 10 years ago
  def 77f506bd70 Make Rational an object 10 years ago
  def f710a31344 Make rationals generic 10 years ago
  def f6c83c32f3 Fix typo 10 years ago
  def c377e6883c Change author of rationals module 10 years ago
  def 2d004dd677 Update toInt doc 10 years ago
  def 444beab5dd Fix division and add tests 10 years ago
  def a85b6fd3fe Change rationals.toInt behaviour 10 years ago
  def aa4d119e8c Move rational.nim to rationals.nim 10 years ago