We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 600d118 commit 4caef73Copy full SHA for 4caef73
rust/src/private.rs
@@ -33,7 +33,7 @@ pub fn compute_latitude_precision(code_length: usize) -> f64 {
33
if code_length <= PAIR_CODE_LENGTH {
34
return ENCODING_BASE.powf((code_length as f64 / -2f64 + 2f64).floor())
35
}
36
- ENCODING_BASE.powi(-3f64) / GRID_ROWS.powf(code_length as f64 - PAIR_CODE_LENGTH as f64)
+ ENCODING_BASE.powi(-3i32) / GRID_ROWS.powf(code_length as f64 - PAIR_CODE_LENGTH as f64)
37
38
39
pub fn prefix_by_reference(pt: Point<f64>, code_length: usize) -> String {
0 commit comments