提交历史

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