-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Wrong result for e.g. √(2.25) - 1.5 #222
Copy link
Copy link
Closed
Labels
Area: User ExperienceIssue primarily affects end user experience and are not covered by other areasIssue primarily affects end user experience and are not covered by other areasBugIssue is a bugIssue is a bugPri: 2triage approvedIssue has been approved by Calculator team memberIssue has been approved by Calculator team member
Metadata
Metadata
Assignees
Labels
Area: User ExperienceIssue primarily affects end user experience and are not covered by other areasIssue primarily affects end user experience and are not covered by other areasBugIssue is a bugIssue is a bugPri: 2triage approvedIssue has been approved by Calculator team memberIssue has been approved by Calculator team member
Describe the bug
√(2.25) is 1.5 and the result shown is correct. However, subtracting 1.5 from that shows an incorrect result such as -2.1115953280960553738983525708397e-38.
This bug happens in all equivalent cases, e.g. with √(0.81) or any other square root that is a terminating decimal.
Steps To Reproduce
Expected behavior
Result is 0
Device and Application Information (please complete the following information):
Additional info
Until recently, it also used to be that "√(4) - 2" didn't result in 0. It was fixed in the UWP app, but is a bug in calc.exe in older versions of Windows.