Change mju_round to use standard round() function.

PiperOrigin-RevId: 942873144
Change-Id: I3fd0d630643c104ff464d619387ff36582c2a5d8
This commit is contained in:
Yuval Tassa
2026-07-05 10:47:30 -07:00
committed by Copybara-Service
parent 4cb14bef47
commit 1ea2d884d2
3 changed files with 31 additions and 9 deletions
+2
View File
@@ -27,6 +27,8 @@ General
``(nv x nC)``.
- Removed the legacy sparse ancestor-walk inertia matrix ``mjData.qM``. The joint-space inertia matrix is now stored
exclusively in the compressed sparse row (CSR) format ``mjData.M``.
- :ref:`mju_round` now breaks ties away from zero rather than towards :math:`+\infty`. This only affects
negative half-integers, e.g. ``mju_round(-2.5)`` now returns -3 rather than -2.
Version 3.10.0 (June 22, 2026)
------------------------------