The International Simutrans Forum

 

Author Topic: r6520 - "margin" display denominated incorrectly  (Read 1286 times)

0 Members and 1 Guest are viewing this topic.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 19824
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
r6520 - "margin" display denominated incorrectly
« on: June 10, 2013, 11:06:54 PM »
In the finance window, the "margin" is shown (correctly) as (for example) 12.84% in the text next to the button, but shows as 1,284 in the graph suggesting that there is a missing "/ 100" somewhere.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10001
  • Languages: De,EN,JP
Re: r6520 - "margin" display denominated incorrectly
« Reply #1 on: June 11, 2013, 03:04:53 PM »
That is intended, since other paks with margins smaller than 1 percent would just be shown as 0.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 19824
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: r6520 - "margin" display denominated incorrectly
« Reply #2 on: June 11, 2013, 06:13:54 PM »
Can you not just show it as a decimal, e. g. 0.67?

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10001
  • Languages: De,EN,JP
Re: r6520 - "margin" display denominated incorrectly
« Reply #3 on: June 11, 2013, 08:33:04 PM »
It could display as money, although it would get the money symbol.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5643
  • Languages: EN, NO
Re: r6520 - "margin" display denominated incorrectly
« Reply #4 on: June 11, 2013, 09:02:46 PM »
It is also certainly possible to code percentage support into the graphs, but as with everything else, someone has to have the time and motivation to do it.