Skip to content

Commit

Permalink
Revert "Set the BCMth scale to 24 to maintain precision in arithmetic…
Browse files Browse the repository at this point in the history
… that uses a lot of decimal places (ie: latitude/longitude)."

This reverts commit 1298694.
  • Loading branch information
mstenta committed Dec 31, 2019
1 parent 05fa897 commit 4ffd4a8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions geoPHP.inc
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,7 @@ class geoPHP
}

static function bcmathInstalled() {
if (extension_loaded('bcmath')) {
// Set the BCMath scale to 24 to maintain precision in arithmetic that
// uses a lot of decimal places (ie: latitude/longitude).
bcscale(24);
return TRUE;
}
return FALSE;
return extension_loaded('bcmath');
}

static function geosInstalled($force = NULL) {
Expand Down

0 comments on commit 4ffd4a8

Please sign in to comment.