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
{{ message }}
Repository navigation
round() mishandles large Int64 and UInt64 values #22696
round() currently exhibits incorrect behavior for large integer inputs.
For Int64 values greater than 2^53 (9007199254740992), which is the largest integer exactly representable in Float64, round() loses precision and return a different value than the input even though rounding an integer with a non-negative scale should be a no-op. This is partially inspired from #22567 by @neilconway
Activity
fix: Preserve integer values in round() for large Int64 and UInt64 in…