Skip to content

cpp: use floor for integer conversion #727

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 23, 2025
Merged

cpp: use floor for integer conversion #727

merged 1 commit into from
May 23, 2025

Conversation

drinckes
Copy link
Contributor

See issues #674 and #717.

This corrects the implementation to use floor when converting from degrees to the integer values, and adds tests for the conversion of degrees to integer, encoding from integers, and adds tolerance to the degrees encoding (due to floating point precision).

@drinckes drinckes merged commit ae0f176 into main May 23, 2025
13 of 35 checks passed
@drinckes drinckes deleted the cpp_674_717 branch May 23, 2025 11:54
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