for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare( strict_types = 1 );
namespace DataValues\Geo\PackagePrivate;
class FloatPrecisionDetector extends PrecisionDetector {
public function detectDegreePrecision( float $degree ): float {
$split = explode( '.', (string)round( $degree, 8 ) );
if ( isset( $split[1] ) ) {
return pow( 10, -strlen( $split[1] ) );
}
return 1;