-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
account for precision problems while comparing limits
The values in the a2l might not match the calculated limits exactly. For example a file contained the limit 3.40282346639E38, while the calculated limit was 3.4028234663852886E38. The value in the file is slightly rounded up (on the final digit) compared to the calculated value, but this should not trigger a warning. To fix this, the comparison of limits now includes a 0.0001% tolerance, which is big enough to hide rounding problems while still being small enough to detect real problems.
- Loading branch information
Showing
1 changed file
with
45 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters