Skip to content

Modify encode method to resemble other implementations #706

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 2 commits into from
Apr 14, 2025

Conversation

drinckes
Copy link
Contributor

This modifies the encode method in VB to resemble the other implementations.

Because it is used by both Excel and LibreOffice as a Basic macro, it is limited by both languages. The main hit is that LibreOffice only has 32-bit longs, which are not big enough to hold the integer converted latitude and longitude.

A solution is to use doubles instead of the integer types, since they do allow representing large numbers.

@drinckes drinckes merged commit 8cf8ab9 into main Apr 14, 2025
32 checks passed
@drinckes drinckes deleted the visualbasic_ints branch April 14, 2025 13:13
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