Skip to content

Don't use floats for division because of rounding errors (center hopping fix) - #115

Merged
johnny-bit merged 1 commit into
nzjrs:masterfrom
znuh:center_hopping-fix
Aug 22, 2026
Merged

Don't use floats for division because of rounding errors (center hopping fix)#115
johnny-bit merged 1 commit into
nzjrs:masterfrom
znuh:center_hopping-fix

Conversation

@johnny-bit

Copy link
Copy Markdown
Collaborator

Fixes center hopping issue caused by a rounding issue computing float variables (6.5 digits accuracy), while the global map needs 7 digits accuracy. This was mostly visible between zoom levels 17, 18 and 19.

Fixes #101

@johnny-bit johnny-bit added this to the 1.2.2 milestone Aug 15, 2026
@johnny-bit johnny-bit mentioned this pull request Aug 15, 2026
@johnny-bit
johnny-bit merged commit 9e829d0 into nzjrs:master Aug 22, 2026
1 check passed
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.

center-hopping

2 participants