Skip to content

Cap fraction digits at 20 to avoid RangeError on older engines#28

Open
bbliem wants to merge 1 commit into
mainfrom
fix/watch-ui-7mp-fraction-digits
Open

Cap fraction digits at 20 to avoid RangeError on older engines#28
bbliem wants to merge 1 commit into
mainfrom
fix/watch-ui-7mp-fraction-digits

Conversation

@bbliem

@bbliem bbliem commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Intl NumberFormat v3 raised maximumFractionDigits' ceiling to 100, but older JS engines still enforce the previous max of 20 and throw a RangeError for anything higher. Clamp to 20, which every engine accepts and which already exceeds a double's precision.

Fixes Sentry WATCH-UI-7MP.

Intl NumberFormat v3 raised maximumFractionDigits' ceiling to 100, but
older JS engines still enforce the previous max of 20 and throw a
RangeError for anything higher. Clamp to 20, which every engine accepts
and which already exceeds a double's precision.

Fixes Sentry WATCH-UI-7MP.
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

Successfully merging this pull request may close these issues.

1 participant