stats: fix rounding issues

Fixes #582.

* spot/twaalgos/stats.cc: Add 0.5 to the result of bdd_satcountset()
before truncating it.
* NEWS: Mention the bug.
This commit is contained in:
Alexandre Duret-Lutz 2024-05-16 12:17:17 +02:00
parent 2bd2abd4c9
commit 913e807d66
2 changed files with 15 additions and 3 deletions

3
NEWS
View file

@ -325,6 +325,9 @@ New in spot 2.11.6.dev (not yet released)
- The configure script failed to detect the include path for Python 3.12.
(Issue #577.)
- Work around many failures caused by incorrect rounding of floating
point values in the counting of transitions. (Issue #582)
- Some incorrectly escaped strings in Python code were causing
warnings with Python 3.12.