
by Hamudistan » Fri Mar 25, 2011 2:49 am

by LlanfairPG » Fri Mar 25, 2011 2:57 am

by Ballotonia » Fri Mar 25, 2011 3:07 am

by Hamudistan » Tue Mar 29, 2011 12:26 am
Ballotonia wrote:All numbers shown are rounded, consequently the rounded numbers don't always add up to 100% exactly.
Example:
item1: 33.333333%, displayed rounded as "33".
item2: 33.333333%, displayed rounded as "33".
item3: 33.333334%, displayed rounded as "33".
Total of non-rounded values: 100%. Total of rounded values: 99%.
Ballotonia

by Ballotonia » Tue Mar 29, 2011 12:57 am
Hamudistan wrote:This works for three or more items in the chart, but how does it work with only two?

by Hamudistan » Wed Mar 30, 2011 7:05 am

by Mousebumples » Wed Mar 30, 2011 7:18 am
Hamudistan wrote:No, the question is how do you end up at 99% with only two items?

by HC Eredivisie » Wed Mar 30, 2011 7:28 am
Hamudistan wrote:No, the question is how do you end up at 99% with only two items?

by [violet] » Thu Mar 31, 2011 2:52 pm
Mousebumples wrote:Do we KNOW that 0.5% rounds up? It's possible that the formula in place rounds DOWN.

by Hamudistan » Tue Apr 05, 2011 12:20 pm

by Ballotonia » Tue Apr 05, 2011 12:38 pm

by Hamudistan » Wed Apr 06, 2011 6:26 am
Ballotonia wrote:If items which round to "0%" are not listed, imagine the following example:
Item 1: 49.3%, displayed rounded down as 49%.
Item 2: 50.3%, displayed rounded down as 50%.
Item 3: 0.4%, NOT displayed since rounded down it's 0%.
Total of non-rounded values: 100%. Total of rounded values: 99%.
Ballotonia

by Ballotonia » Wed Apr 06, 2011 6:36 am
Hamudistan wrote:Ballotonia wrote:If items which round to "0%" are not listed, imagine the following example:
Item 1: 49.3%, displayed rounded down as 49%.
Item 2: 50.3%, displayed rounded down as 50%.
Item 3: 0.4%, NOT displayed since rounded down it's 0%.
Total of non-rounded values: 100%. Total of rounded values: 99%.
Ballotonia
Then why does my economy pie chart show "private sector 0%, public sector 100%"? Is this a specialty of the economy pie chart or can't there be less than two item?

by Lordieth » Wed Apr 06, 2011 7:16 am

by [violet] » Wed Apr 06, 2011 1:42 pm
Ballotonia wrote:Note the "IF" my reply started off with. I can't look into the game code, just make a guess as to how things work based on what I see happening. My best guess is that indeed the "0%" in the Economy graph is an exception to the general rule.

by [violet] » Wed Apr 06, 2011 1:45 pm
Lordieth wrote:I imagine for it to be not on the chart you would need absolute zero private spending. So 0% is rounded, however because your private spending isn't absolutely 0 it is still displayed.
Advertisement
Users browsing this forum: No registered users
Advertisement