Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | make more standard libraries work with `nimPreviewSlimSystem` (#20343) | ringabout | 2022-09-27 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | * make more standard libraries work with `nimPreviewSlimSystem` * typo * part two * Delete specutils.nim * fixes more tests * more fixes * fixes tests * fixes three more tests * add formatfloat import * fix * last | ||||
* | CIs: attempt to use csources_v1 (#16282) | Andreas Rumpf | 2021-04-21 | 1 | -1/+1 |
| | | | | | | | | * CIs: attempt to use csources_v1 * also updated the BSDs * also updated azure pipelines * std modules should not itself use the 'std/' import dir... * compiler has to be careful with std/ for v1 booting | ||||
* | close #16921 (#16951) | flywind | 2021-02-06 | 1 | -30/+29 |
| | |||||
* | Improve doc comments (#16902) | konsumlamm | 2021-02-02 | 1 | -85/+123 |
| | | | | | Add runnableExamples Use `reduce` in `initRational` and `//` Add static tests | ||||
* | rationals.nim: Use `func` everywhere (#16302) | ee7 | 2020-12-09 | 1 | -41/+41 |
| | |||||
* | move tests to testament (#16101) | flywind | 2020-11-24 | 1 | -97/+0 |
| | | | | | | | | | * move tests to testament * minor * fix random * disable test random | ||||
* | Remove the uses of {.procvar.} pragma (#14359) | Kaushal Modi | 2020-05-15 | 1 | -1/+1 |
| | | | | | | | This pragma did nothing. Ref: - https://github.com/nim-lang/Nim/issues/2172#issuecomment-383276469 - https://github.com/nim-lang/Nim/issues/12975 | ||||
* | Error -> Defect for defects (#13908) | Jacek Sieka | 2020-04-28 | 1 | -2/+2 |
| | | | | | | | | | | | | | | * Error -> Defect for defects The distinction between Error and Defect is subjective, context-dependent and somewhat arbitrary, so when looking at an exception, it's hard to guess what it is - this happens often when looking at a `raises` list _without_ opening the corresponding definition and digging through layers of inheritance. With the help of a little consistency in naming, it's at least possible to start disentangling the two error types and the standard lib can set a good example here. | ||||
* | [backport] run nimpretty on numbers stuff | narimiran | 2019-09-30 | 1 | -47/+48 |
| | |||||
* | last stdlib cleanups | Araq | 2019-09-21 | 1 | -10/+10 |
| | |||||
* | Support `div`, `mod`, floorDiv and floorMod for Rationals (#7918) | Koki Fushimi | 2018-06-01 | 1 | -0/+36 |
| | | | | | | | | * Support `div`, `mod`, floorDiv and floorMod for Ratinoals. * Bug fix and add tests. * Update changelog | ||||
* | Use safe limit for toRational(float, int) (#7021) | Sergey Avseyev | 2018-01-03 | 1 | -3/+8 |
| | | | | | | | | | | Current limit `high(int32)` is not safe for 32-bit platforms and it will overflow (even when running its own test suite). Similar behaviour would be when try to set limit to `high(int64)` on 64-bit platforms. This change selects safe maximum value based on platform size of int. Safe maximum considered half of int size (for backward compatiblity). | ||||
* | Make toRational proc to loop through integers (#6633) | konqoro | 2017-10-30 | 1 | -18/+15 |
| | |||||
* | make tests green again | Andreas Rumpf | 2017-10-30 | 1 | -2/+2 |
| | |||||
* | rationals.toRational now uses an algorithm based on continued fractions; ↵ | Andreas Rumpf | 2017-10-30 | 1 | -45/+32 |
| | | | | refs #4968 | ||||
* | made test green for 32bit system | Araq | 2016-09-30 | 1 | -1/+1 |
| | |||||
* | Fix toRational overflow by calculating internally with int64s (fixes #4194) | def | 2016-05-22 | 1 | -11/+11 |
| | |||||
* | Fixed a typo in proc `-`(x: T, y: Rational[T]) | pgkos | 2016-03-18 | 1 | -1/+1 |
| | |||||
* | Add toRational(float) conversion from any float to closest | JamesP | 2015-10-04 | 1 | -0/+62 |
| | | | | approx for specified precision | ||||
* | add a few type checks to limit type to SomeInteger | JamesP | 2015-10-01 | 1 | -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 denominator | JamesP | 2015-10-01 | 1 | -0/+1 |
| | |||||
* | lib: Trim .nim files trailing whitespace | Adam Strzelecki | 2015-09-04 | 1 | -1/+1 |
| | | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} + | ||||
* | lib/pure/p-t - Dropped 'T' from types | pdw | 2015-06-04 | 1 | -2/+2 |
| | |||||
* | Merge pull request #2486 from endragor/rational-hash | Andreas Rumpf | 2015-04-08 | 1 | -0/+14 |
|\ | | | | | Add hash proc for Rational | ||||
| * | Added hash proc for Rational | Ruslan Mustakov | 2015-04-08 | 1 | -0/+14 |
| | | |||||
* | | Added procvar pragma to rationals.cmp | Ruslan Mustakov | 2015-04-08 | 1 | -1/+1 |
|/ | |||||
* | Fix toRational | def | 2015-04-07 | 1 | -2/+2 |
| | |||||
* | Add for rationals | def | 2015-02-27 | 1 | -0/+4 |
| | |||||
* | Add for easier intialization of rationals | def | 2015-02-27 | 1 | -26/+32 |
| | |||||
* | Make Rational an object | def | 2015-02-24 | 1 | -31/+36 |
| | |||||
* | Make rationals generic | def | 2015-02-20 | 1 | -28/+33 |
| | |||||
* | Fix typo | def | 2015-02-19 | 1 | -1/+1 |
| | |||||
* | Change author of rationals module | def | 2015-02-19 | 1 | -1/+1 |
| | |||||
* | Update toInt doc | def | 2015-02-16 | 1 | -2/+2 |
| | |||||
* | Fix division and add tests | def | 2015-02-16 | 1 | -15/+42 |
| | |||||
* | Change rationals.toInt behaviour | def | 2015-02-16 | 1 | -4/+4 |
| | |||||
* | Move rational.nim to rationals.nim | def | 2015-02-16 | 1 | -0/+228 |