reitti / reittiopas

Ihan hyvä reittiopas
http://ihanhyvareittiopas.fi/
MIT License
25 stars 2 forks source link

Division of route legs to percentages doesn't always add up to 100% #66

Closed teropa closed 11 years ago

teropa commented 11 years ago

The usual rounding problem.

Currently everything is floored, which means the sum can be, and often is, less than 100. The possible remainder should be added to the legs so that the sum is 100.