Skip to content

Commit 8a27fd9

Browse files
committed
fix
1 parent e32edcb commit 8a27fd9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PolylineAlgorithm/PolylineEncoding.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static int Normalize(double value, uint precision = 5) {
7878
uint factor = Pow10.GetFactor(precision);
7979

8080
checked {
81-
return (int)Math.Round(value * factor, MidpointRounding.AwayFromZero);
81+
return (int)Math.Truncate(value * factor);
8282
}
8383
}
8484

0 commit comments

Comments
 (0)