Skip to content
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

fix(box): use maximum precision in toString #126

Merged
merged 2 commits into from
Jan 3, 2025
Merged

Conversation

saibotk
Copy link
Member

@saibotk saibotk commented Jan 3, 2025

The Box classes previously built the string and the floats where cast to string. This looses some precision, because the PHP precision is used instead of the serialization precision.

We now also use the GeometryHelper function here, in the same way that we used it in the WKT generator.

The Box classes previously built the string and the floats where cast to string. This looses some precision, because the PHP precision is used instead of the serialization precision.

We now also use the `GeometryHelper` function here, in the same way that we used it in the WKT generator.
@saibotk saibotk requested a review from ahawlitschek January 3, 2025 15:37
@saibotk saibotk self-assigned this Jan 3, 2025
@ahawlitschek ahawlitschek enabled auto-merge January 3, 2025 16:10
@ahawlitschek ahawlitschek merged commit 07c5507 into main Jan 3, 2025
13 checks passed
@ahawlitschek ahawlitschek deleted the fix-box-precision branch January 3, 2025 16:11
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.

2 participants