You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to construct the interval [1.0000000000000001, 1.0000000000000002]. Note that the lower bound is parsed to the float 1.0 and the upper bound is the next float. If I create the interval with .., then the upper bound is converted to its previous float in this case.
interval does not have this issue, so I think the problem is with .. calling rationalize somewhere under the hood. I haven't checked the details of rationalize source code, but I think to remember it uses some continued fractions expansions under the hood. I guess that floating point numbers which are only a few ulps away are converted to the same rational number.
The text was updated successfully, but these errors were encountered:
I am trying to construct the interval
[1.0000000000000001, 1.0000000000000002]
. Note that the lower bound is parsed to the float1.0
and the upper bound is the next float. If I create the interval with..
, then the upper bound is converted to its previous float in this case.interval
does not have this issue, so I think the problem is with..
callingrationalize
somewhere under the hood. I haven't checked the details ofrationalize
source code, but I think to remember it uses some continued fractions expansions under the hood. I guess that floating point numbers which are only a few ulps away are converted to the same rational number.The text was updated successfully, but these errors were encountered: