Skip to content

Refine snapping condition for _snaprat#2466

Open
axtar wants to merge 1 commit into
microsoft:mainfrom
axtar:branchfix1
Open

Refine snapping condition for _snaprat#2466
axtar wants to merge 1 commit into
microsoft:mainfrom
axtar:branchfix1

Conversation

@axtar
Copy link
Copy Markdown

@axtar axtar commented May 22, 2026

This PR helps to mitigate possible calculation errors like the one described in issue #2439 by adding an additional check to _snaprat. A result with an absolute value greater or equal than rat_smallest should not be set to zero anyway.

Update condition to snap to zero based on additional check.
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