diff options
author | A. S. Budden <abudden@gmail.com> | 2016-05-31 13:17:40 +0100 |
---|---|---|
committer | A. S. Budden <abudden@gmail.com> | 2016-05-31 13:17:40 +0100 |
commit | 0cc7c9a13ceb1afe703d328222dace69cf84a81b (patch) | |
tree | b202b06fff06b51ebb0add33b6dbc8b3f4972c98 /web | |
parent | f3fdad0eda8664f71e265b7ecc41477a7490331c (diff) | |
download | Nim-0cc7c9a13ceb1afe703d328222dace69cf84a81b.tar.gz |
Modification to implementation of round() such that it returns a float and accepts a places argument (fixes #3473).
This also involved moving some functions around to get the hierarchy correct and the documentation for frexp was modified such that it was clear that it can return a float in either the range [-1, -0.5] or [0.5, 1].
Diffstat (limited to 'web')
-rw-r--r-- | web/news.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web/news.txt b/web/news.txt index c100c8aee..3dd6c4e1e 100644 --- a/web/news.txt +++ b/web/news.txt @@ -45,6 +45,11 @@ Changes affecting backwards compatibility - The path handling changed. The project directory is not added to the search path automatically anymore. Add this line to your project's config to get back the old behaviour: ``--path:"$projectdir"``. +- The ``round`` function in ``math.nim`` now returns a float and has been + corrected such that the C implementation always rounds up from .5 rather + than changing the operation for even and odd numbers. +- The ``round`` function now accepts a ``places`` argument to round to a + given number of places (e.g. round 4.35 to 4.4 if ``places`` is 1). Library Additions |