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

0 Members and 1 Guest are viewing this topic.

Offline vdeane

  • Sr. Member
  • ****
  • Posts: 425
  • Gender: Female
  • Last Login:Yesterday at 08:52:23 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.

Offline yakra

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4422
  • Last Login:November 11, 2024, 12:50:03 pm
  • I like C++
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
Sri Syadasti Syadavaktavya Syadasti Syannasti Syadasti Cavaktavyasca Syadasti Syannasti Syadavatavyasca Syadasti Syannasti Syadavaktavyasca

Offline Bickendan

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 553
  • Last Login:November 13, 2024, 12:48:48 am
Re: 0% / 100% vs 0.00% / 100.00%
« Reply #17 on: September 24, 2019, 09:07:38 am »
I can live with the parenthetical percentage number being bumped to the second line. It may not be ideal, but it's certainly much nicer than the percentage sign and closing parenthesis getting bumped.