-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
document that we do machine arithmetic #2085
Comments
Fixed in 016823a |
Wouldn't it be relevant to also add some notes on why machine arithmetic is used? Specifically something along these lines (with some polishing):
|
+1 for this text -- John On Apr 18, 2013, at 7:46 AM, Waldir Pimenta [email protected] wrote:
|
Can users check for overflow explicitly in Julia? I can understand if the default behavior is to not check explicitly, but it would be very important to check for some applications. Is there an overflow flag that is set that can be tested for, without some clunky test like checking if a positive integer suddenly turned negative? I see some people mentioning this but didn't see a clue of whether such a thing existed. |
[x] Fixes typos, minor formatting and grammar issues and uses check marks [x] Better cross-referencing [x] Adds explanation of how primitive numeric types map onto machine arithmetic (#2085)
Open issue for arithmetic overflow checking: #855. |
I like @Waldir's text above. What's the source of the text? |
Performance is really the only reason. It's not that we think tediously manually checking everything is good. In fact we will provide options to do more automatic checks. |
@StefanKarpinski The first part appears to come from @johnmyleswhite in the first discussion thread you posted. I've added a paragraph to similar effect to the beginning to the numbers section, but am wondering now if the specific sentence about "hiding the underlying machine from the user" should have been put in as well. |
It's a shortened version of a selection of quotes from this thread, which I originally posted here. These are the same links as those you used in the opening comment of this issue. |
If a overflow flag is to be developed, it'd be good if it were extensible enough to also work with the MPFR flags. I'm trying to think of a good way to expose them in BigFloat, but have yet to find it. |
https://groups.google.com/d/topic/julia-users/esqGRbQdodM/discussion
https://groups.google.com/d/topic/julia-dev/1jrQtu-i8Tk/discussion
In particular this:
https://groups.google.com/d/msg/julia-users/esqGRbQdodM/QZ9cAe5YVecJ
The text was updated successfully, but these errors were encountered: