We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e32edcb commit 8a27fd9Copy full SHA for 8a27fd9
1 file changed
src/PolylineAlgorithm/PolylineEncoding.cs
@@ -78,7 +78,7 @@ public static int Normalize(double value, uint precision = 5) {
78
uint factor = Pow10.GetFactor(precision);
79
80
checked {
81
- return (int)Math.Round(value * factor, MidpointRounding.AwayFromZero);
+ return (int)Math.Truncate(value * factor);
82
}
83
84
0 commit comments