Closed soneryaldiz closed 2 weeks ago
I am not following this test. On the second test, we have fp.exponent = 5 and the new constructed fp has exponent =4. So compare should be greateTthan(0) not lessThan(0).
I am fixing the comparison to also not differentiate between +0 and -0.
Test 2 compares -2^(5-bias) to -2^(4-bias) and the result should be less than zero as the former number is smaller than the latter.
Describe the bug
Comparison of floating point values should take sign into consideration.
To Reproduce
Expected behavior
No response
Actual behavior
No response
Additional: Dart SDK info
No response
Additional: pubspec.yaml
No response
Additional: Context
No response