Author Topic: 0% / 100% vs 0.00% / 100.00%  (Read 725 times)

0 Members and 1 Guest are viewing this topic.

Offline vdeane

  • Full Member
  • ***
  • Posts: 127
  • Gender: Female
  • Last Login:Yesterday at 06:03:18 pm
    • New York State Roads
Re: 0% / 100% vs 0.00% / 100.00%
« Reply #15 on: September 03, 2019, 07:03:56 pm »
I also like the idea of dropping the trailing 0s, at least for 0% and 100%, as long as rounding doesn't cause something to report as those values.  It helps emphasize if all or nothing of something is clinched.
Please note: All comments here represent my own personal opinion and do not reflect the official position of NYSDOT or its affiliates.

Online yakra

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2129
  • Last Login:Today at 02:01:56 am
Re: 0% / 100% vs 0.00% / 100.00%
« Reply #16 on: September 08, 2019, 02:14:30 am »
https://github.com/TravelMapping/Web/pull/348
On untraveled routes in the HB, the Route Stats table mucked up some stats in MySQL 8.0, and failed to display some others in either MySQL 8.0 or 5.7.
The fix ended up catching a lot of the stats in its dragnet, and I reformatted to drop the trailing 0s in percentages in the process.
Changed the Waypoints table while at it, to be consistent.

http://205.209.84.174/hb/index_old.php?r=me.me169
http://travelmapping.net/hb/index.php?r=me.me169
The old page on lab2 and noreaster will only differ on untraveled routes.
http://205.209.84.174/hb/index.php?r=me.me169
Here's the new page for comparison.

Some more examples:
lab2  | noreaster
ME37  | ME37
ME127 | ME127
ME188 | ME188
ME189 | ME189
ME196 | ME196