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
Unlimited increment for "hour", "month", "week", and "day" has some issues:
Too large increments don't seem useful for the user, because the other input is always restricted to a certain range. For example the number of days between two dates is restricted to 2×10⁸ days by definition. When the rounding increment is then set to, let's say 10⁹, the rounding result will always either be 0 or 10⁹, depending on the rounding mode. (Or in other cases TypeErrors, because some intermediate results can't be represented.)
And unlimited increments make harder to implement this, because it's not possible to use fixed size integer types.
Therefore I'd like to propose to limit the maximum rounding increment for "hour", "month", "week", and "day" to reasonable limits.
(My apologies for not noticing and pulling this out of the checklist earlier.)
Meeting 2023-01-12: we'll limit all currently-unlimited increments to 109 (or lower) so they can fit in a 32-bit integer. We'll use 109 instead of 231-1 or 232-1 because 109 will be clearer in end-user-facing documentation.
Feedback from @anba in #1502:
(My apologies for not noticing and pulling this out of the checklist earlier.)
Example of what's being referred to in (1):
The text was updated successfully, but these errors were encountered: