Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
felixwluo committed Jan 8, 2025
1 parent 75a6fdd commit b3e6a7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions be/src/geo/geo_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ double GeoPoint::x() const {
double value = S2LatLng::Longitude(*_point).degrees();
// Handle values very close to integers
double rounded = round(value);
if (std::abs(value - rounded) < 1e-13) { // 使用更大的阈值
if (std::abs(value - rounded) < 1e-13) { // 使用更大的阈值
return rounded;
}
return value;
Expand All @@ -339,7 +339,7 @@ double GeoPoint::y() const {
double value = S2LatLng::Latitude(*_point).degrees();
// Handle values very close to integers
double rounded = round(value);
if (std::abs(value - rounded) < 1e-13) { // 使用更大的阈值
if (std::abs(value - rounded) < 1e-13) { // 使用更大的阈值
return rounded;
}
return value;
Expand Down

0 comments on commit b3e6a7f

Please sign in to comment.