Skip to content

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Feb 7, 2024

Pointed out in MaterialX discussions, our spec was not clear what round() should do in cases where the input value is exactly half way between two integers. Our design (and implementation) uses "round away from zero" policy for that case, matching C/C++ standard round(). But we were not clear about it in the docs.

Pointed out in MaterialX discussions, our spec was not clear what
round() should do in cases where the input value is exactly half way
between two integers. Our design (and implementaton) uses "round away
from zero" policy for that case, matching C/C++ standard round(). But
we were not clear about it in the docs.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz lgritz requested a review from lkerley February 15, 2024 21:28
@lgritz lgritz merged commit 8468d7d into AcademySoftwareFoundation:main Feb 24, 2024
@lgritz lgritz deleted the lg-round branch March 9, 2024 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant