generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(geometries): Fix stringifyFloat to correctly format number
We missed the "." here and thus PHP formatted numbers with the default precision of 6 and prefixed it with whitespaces. Additionally the trims were adjusted, as we now do not need to trim any whitespaces. Also the trimming for the "." was made a rtrim instead to avoid wrongly stripping `.1` to `1`, even though this should never be a possible value that sprintf would produce. See PHP docs: https://www.php.net/manual/en/function.sprintf.php Thanks @ronnypolloqueri for reporting this.
- Loading branch information
Showing
2 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters