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
The function round() seems to ignore precision information slightly beyond the default 53 bits for a real number. This leads to some incorrect rounding results for close calls.
sage: a = 5.499999999999999
sage: a.prec()
56
sage: round(a) ## This is ok
5.0
sage: b = 5.4999999999999999
sage: b.prec()
59
sage: round(b) ## This isn't ok
6.0
The function round() seems to ignore precision information slightly beyond the default 53 bits for a real number. This leads to some incorrect rounding results for close calls.
Component: algebraic geometry
Keywords: round, real, precision, arithmetic
Issue created by migration from https://trac.sagemath.org/ticket/392
The text was updated successfully, but these errors were encountered: