Closed Bug 1953073 Opened 6 months ago Closed 5 months ago

Calculator: Adjust Formatting Rules

Categories

(Firefox :: Address Bar, enhancement, P2)

enhancement

Tracking

()

VERIFIED FIXED
138 Branch
Tracking Status
firefox137 --- verified
firefox138 --- verified

People

(Reporter: yazan, Assigned: yazan)

References

Details

(Whiteboard: [sng])

Attachments

(2 files)

Since we are using scientific notation for large numbers, we don't need to display comma/period thousands formatting for calculator results.
We should also modify the current max significant figures rule, which will resolve https://bugzilla.mozilla.org/show_bug.cgi?id=1954066.

Severity: -- → N/A
Priority: -- → P2
Whiteboard: [sng]
Summary: Calculator: Comma Formatting Results Not Necessary → Calculator: Adjust Formatting Rules
Attachment #9472523 - Attachment description: Bug 1953073 - Modify calc result formatting to fix issues with signficant digits and unnecessary grouping. r?daleharvey → Bug 1953073 - Modify calc result formatting to fix issues with signficant digits and unnecessary grouping. r?jteow
Pushed by yalmacki@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/34cbfeb4df32 Modify calc result formatting to fix issues with signficant digits and unnecessary grouping. r=fluent-reviewers,urlbar-reviewers,bolsson,jteow
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
Attachment #9472869 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: Users may see incorrect calculations with large numbers
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: yes
  • Steps to reproduce for manual QE testing: Ensure 1000000000 + 2 and all calculations are correctly performed.
  • Risk associated with taking this patch: Low
  • Explanation of risk level: This patch only changes certain formatting rules to prevent incorrect calculations in certain scenarios, and to improve readability/consistency of results.
  • String changes made/needed: I've added a new string, but it consists of only symbols/numbers, and would be the same for most locales
  • Is Android affected?: no
Flags: qe-verify+
Attachment #9472869 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]
See Also: → 1955018

Reproduced this issue on an affected Nightly build from 2025-03-11, on Windows 11.
Verified as fixed on the latest Nightly 138.0a1 (20250319204742) and latest Beta 137.0b8 (20250319094417) on Windows 11, macOS 11, Ubuntu 22. Large numbers are now displayed correctly without unnecessary grouping, using proper formatting and scientific notation when needed and the calculations are accurate.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: