Skip to content
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

Potential docs mess up? Or am I missing something? #75

Closed
ChrisRackauckas opened this issue Jun 26, 2017 · 1 comment
Closed

Potential docs mess up? Or am I missing something? #75

ChrisRackauckas opened this issue Jun 26, 2017 · 1 comment

Comments

@ChrisRackauckas
Copy link
Contributor

In the docs:

Due to the way floating-point arithmetic works, the interval
`a` created directly by the constructor turns out to contain
*neither the true real number 0.1, nor 0.3*, since the floating point
number associated to 0.1 is actually rounded up, whereas the
one associated to 0.3 is rounded down.
The [`@interval`](@ref) macro, however, uses [**directed rounding**](rounding.md) to *guarantee*
that the true 0.1 and 0.3 are included in the result.

But the interval is [0.0999999, 0.300001]: doesn't that contain the values?

@ChrisRackauckas
Copy link
Contributor Author

Oh nope, I'm dumb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant