https://github.com/JuliaLang/julia
Revision a3eb9d43f859e8fab3e2dd81cc4c3fc47ef47228 authored by Keno Fischer on 28 September 2019, 19:17:12 UTC, committed by GitHub on 28 September 2019, 19:17:12 UTC
* Re-arrange fld/cld code

In preparation for supporting other rounding modes in div, create
a three-argument div function that takes a rounding mode as the last
argument and make this the fundamental fallback for fld/cld.

* Implemented rounded division

* add various divrem combinations to avoid overflow

* Whitespace/test fixes

* Small tweaks to docstrings

* Bugfixes

* Add the exhaustive test

* Tigthen up types for div fallback

I think it's better to give a MethodError here than an approximate
answer for non-AbstractFloat reals (e.g. custom integer types).
1 parent e5c3ffc
History
Tip revision: a3eb9d43f859e8fab3e2dd81cc4c3fc47ef47228 authored by Keno Fischer on 28 September 2019, 19:17:12 UTC
div with rounding modes [+ rounded division] (#33040)
Tip revision: a3eb9d4
File Mode Size
.github
base
contrib
deps
doc
etc
src
stdlib
test
ui
.appveyor.yml -rw-r--r-- 2.1 KB
.gitattributes -rw-r--r-- 67 bytes
.gitignore -rw-r--r-- 257 bytes
.mailmap -rw-r--r-- 11.0 KB
.travis.yml -rw-r--r-- 6.1 KB
CITATION.bib -rw-r--r-- 2.6 KB
CONTRIBUTING.md -rw-r--r-- 21.2 KB
HISTORY.md -rw-r--r-- 267.7 KB
LICENSE.md -rw-r--r-- 5.1 KB
Make.inc -rw-r--r-- 40.0 KB
Makefile -rw-r--r-- 26.9 KB
NEWS.md -rw-r--r-- 3.0 KB
README.md -rw-r--r-- 6.4 KB
VERSION -rw-r--r-- 10 bytes
sysimage.mk -rw-r--r-- 3.8 KB

README.md

back to top