When comparing numeric values with units, values are sometimes displayed in different units (e.g., one in dm and one in cm). This makes it difficult for users to properly interpret the differences.
Solution
Modified the CompareDoubleValues method to always use the unit of the first object for displaying both values. This ensures differences are consistently displayed in the same unit.
This change only affects the display of differences, not the underlying comparison logic or conversions.
Type of change
Please mark relevant options with an x in the brackets.
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires documentation changes (link at least one user or developer documentation issue):
[ ] Algorithm update - updates algorithm documentation/questions/answers etc.
[ ] Other (please describe):
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
[ ] Integration tests
[ ] Unit tests
[x] Manual tests
[ ] No tests required
Reviewer checklist
Mark everything that needs to be checked before merging the PR.
[ ] Check if the code is well documented
[ ] Check if the behavior is what is expected
[ ] Check if the code is well tested
[ ] Check if the code is readable and well formatted
[ ] Additional checks (document below if any)
[ ] Check if documentation update issue(s) are created if the option This change requires a documentation update above is selected
Fixes #2349
Description
When comparing numeric values with units, values are sometimes displayed in different units (e.g., one in dm and one in cm). This makes it difficult for users to properly interpret the differences. Solution Modified the CompareDoubleValues method to always use the unit of the first object for displaying both values. This ensures differences are consistently displayed in the same unit. This change only affects the display of differences, not the underlying comparison logic or conversions.
Type of change
Please mark relevant options with an
x
in the brackets.How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Reviewer checklist
Mark everything that needs to be checked before merging the PR.
This change requires a documentation update
above is selectedScreenshots (if appropriate):
Questions (if appropriate):