utack / utack_brouter_profile

A BRouter profile for some light touring or commuting with a city bike
13 stars 2 forks source link

maintainer refuses to add div operator to brouter #13

Closed fredlllll closed 6 years ago

fredlllll commented 6 years ago

;)

poutnikl commented 6 years ago

I asked Arndt for it long time ago, when no even sub was implemented. Perhaps he is afraid of dividing by zero and runtime error.

fredlllll commented 6 years ago

as its using float the +-inf values could be used for those cases.

fredlllll commented 6 years ago

just took a look at https://stackoverflow.com/questions/5291606/why-does-1-0-give-error-but-1-0-0-returns-inf and apparently float doesnt throw an exception on div by 0

utack commented 6 years ago

I have a workaround for now, and Arndt probably has his reasons.
I think this should be reported over on https://github.com/abrensch/brouter/issues if it is needed