Why is 0 divided by 0 an error?

前端 未结 18 755
耶瑟儿~
耶瑟儿~ 2021-02-05 07:20

I have come across this problem in a calculation I do in my code, where the divisor is 0 if the divident is 0 too. In my code I return 0 for that case. I am wondering, while div

18条回答
  •  梦谈多话
    2021-02-05 08:11

    0 means nothing, so if you have nothing, it does not imply towards anything to distribute to anything. Some Transit Facilities when they list out the number of trips of a particular line, trip number 0 is usually the special route that is routed in a different way. Typically, a good example would be in the Torrance Transit Systems where Line 2 has a trip before the first trip known as trip number 0 that operates on weekdays only, that trip in particular is trip number 0 because it is a specialized route that is routed differently from all the other routes.

    See the following web pages for details: http://transit.torrnet.com/PDF/Line-2_MAP.pdf http://transit.torrnet.com/PDF/Line-2_Time_PDF.pdf

    On the map, trip number 0 is the trip that is mapped in dotted line, the solid line maps the regular routing.

    Sometimes 0 can be used on numbering the trips a route takes where it is considered the "Express Service" route.

提交回复
热议问题