Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | rename nimFpRoundtrips => nimPreviewFloatRoundtrip (#18566) | Timothee Cour | 2021-07-23 | 1 | -5/+5 |
| | |||||
* | make -d:nimFpRoundtrips work consistently in vm vs rt, fix #18400, etc (#18531) | Timothee Cour | 2021-07-20 | 2 | -21/+97 |
| | | | | | | * compiler/vmhooks: add getVar to allow vmops with var params * addFloat vmops with var param * cgen now renders float32 literals in c backend using roundtrip float to string | ||||
* | make dragonbox opt-in via -d:nimFpRoundtrips (#18504) | Andreas Rumpf | 2021-07-16 | 2 | -0/+5 |
| | | | | | | | * make dragonbox opt-in via -d:nimFpRoundtrips * make tests green again * make tests green again | ||||
* | fixes #18400 (#18402) | Andreas Rumpf | 2021-06-30 | 1 | -0/+6 |
| | |||||
* | fix #7717 roundtrip float to string; fix `parseFloat` for js (#18248) | Timothee Cour | 2021-06-13 | 2 | -28/+84 |
| | | | | | | | * refs #7717 roundtrip float to string * make parseFloat more correct * improve float tests * improve float tests * cleanup | ||||
* | added float32 schubfach algorithm; wip (#18155) | Andreas Rumpf | 2021-06-03 | 1 | -0/+5 |
| | | | | | * added float32 schubfach algorithm; wip * fixes #18418 | ||||
* | use dragonbox algorithm; alternative to #18008 (#18139) | Andreas Rumpf | 2021-06-01 | 1 | -4/+4 |
| | | | | | * use dragonbox algorithm; alternative to #18008 * removed unsafe code | ||||
* | fix #16469 vm float constants: do not conflate -0.0 and 0.0 (#16470) | Timothee Cour | 2020-12-27 | 1 | -1/+14 |
| | | | | | * fix #16469 vm float constants: do not conflate -0.0 and 0.0 * fix test for 32bit | ||||
* | targets: use cpp instead of c++ everywhere (was by far the most common) (#15961) | Timothee Cour | 2020-11-14 | 1 | -1/+1 |
| | |||||
* | Error -> Defect for defects (#13908) | Jacek Sieka | 2020-04-28 | 2 | -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. | ||||
* | Revert "printing float values will have one more digit. (#13276) [backport]" ↵ | Timothee Cour | 2020-02-08 | 2 | -27/+17 |
| | | | | | (#13363) This reverts commit b2c6db97f9f477f6999fa9c7aae5e32f10b6b3fe. | ||||
* | printing float values will have one more digit. (#13276) [backport] | Arne Döring | 2020-02-07 | 2 | -17/+27 |
| | | | | * printing float values will have one more digit. Fixes #13196 | ||||
* | remove unused imports from tests | narimiran | 2019-11-06 | 1 | -1/+1 |
| | |||||
* | azure: disable failing tests | Leorize | 2019-10-03 | 1 | -4/+5 |
| | |||||
* | fix #10305 nim cpp is now nan-correct at CT (#10310) | Timothee Cour | 2019-01-15 | 1 | -0/+28 |
| | | | | | * fix #10305 nim cpp is now nan-correct at CT * add example where simply `nim cpp -d:release` would exhibit nan bug | ||||
* | Testament: refactoring; makes the test joiner green | Araq | 2018-12-11 | 1 | -5/+6 |
| | |||||
* | require errormsg to be specified before file. | Arne Döring | 2018-12-11 | 9 | -26/+20 |
| | |||||
* | make `mod` on floats available in the VM (#9591) | skilchen | 2018-11-05 | 1 | -0/+130 |
| | | | | | | * make `mod` on floats available in the VM * add testcase * removed no longer needed imports | ||||
* | update test | cooldome | 2018-04-29 | 1 | -1/+13 |
| | |||||
* | Add a test | cooldome | 2018-04-29 | 1 | -0/+37 |
| | |||||
* | Fix for isssue in parseBiggestFloat #7060 (#7061) | cooldome | 2018-01-11 | 1 | -0/+6 |
| | |||||
* | Added 'lenient ops' module (#6754) | Fabian Keller | 2017-11-21 | 1 | -0/+100 |
| | | | | | | | | | | | | | | | | * added 'lenient ops' module * made lenient ops inline/noSideEffect; updated copyright * moved tests into external module * added warning for the '==' operator * mentioned lenientops in the standard library overview * removed test on nimout -- too fragile * removed `==` and moved doc link to core section | ||||
* | make more tests green | Araq | 2017-11-01 | 1 | -6/+0 |
| | |||||
* | fixes #6606 (#6610) | Fredrik Høisæther Rasch | 2017-10-27 | 1 | -0/+22 |
| | |||||
* | make tests green again; closes #5861 | Andreas Rumpf | 2017-10-10 | 1 | -1/+1 |
| | |||||
* | Remove expr/stmt (#5857) | Arne Döring | 2017-07-25 | 1 | -1/+1 |
| | |||||
* | Fixes #5821 (float32 literal comparison issue) (#5825) | Dominik Picheta | 2017-05-17 | 1 | -0/+13 |
| | | | | * Remove processing hints for async procs. * Fixes #5821. | ||||
* | testament: OS specific disables | Araq | 2017-01-31 | 1 | -0/+1 |
| | |||||
* | made test green for Windows | Araq | 2016-09-30 | 1 | -2/+4 |
| | |||||
* | fixes issue 4212 && add test for various valid zero floats. | Parashurama | 2016-05-25 | 1 | -13/+21 |
| | |||||
* | fixes #4212 | Andreas Rumpf | 2016-05-25 | 1 | -1/+1 |
| | |||||
* | fixes some issues with underscores in float literals. add more tests. | Parashurama | 2016-05-19 | 2 | -0/+47 |
| | | | | | | fixes some potential issues with underscores in float literals. adds more checks for badly positionned underscores in float literals. adds more test files. | ||||
* | fix issue 4181. add testcase. | Parashurama | 2016-05-18 | 1 | -0/+15 |
| | |||||
* | tests: Trim .nim files trailing whitespace | Adam Strzelecki | 2015-09-04 | 1 | -1/+1 |
| | | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} + | ||||
* | make tests green | Araq | 2014-08-31 | 3 | -5/+5 |
| | |||||
* | further adaptations | Araq | 2014-08-29 | 1 | -2/+2 |
| | |||||
* | Fixed parsing of float literals. | Reimer Behrends | 2014-05-23 | 1 | -0/+42 |
| | | | | | | | | | Float literals were not parsed properly when their fractional part exceeded 53 significant bits. This affected in particular math.PI and math.E. Rather than reinventing the wheel, this patch reuses C's strtod() implementation, which already does the heavy lifting with respect to correctness, though some caution is necessary to keep float parsing locale-independent. | ||||
* | new tester; all tests categorized | Araq | 2014-01-13 | 3 | -0/+54 |