Verified:

llaar Game profile

Member
11,314

Jul 1st 2010, 16:00:47

in FFA from boxcar news that shows the same things bought at the same price:

65s ago 150,000 Tanks bought for $490
65s ago 200,000 Troops bought for $136
65s ago 1,000,000 Turrets bought for $145
69s ago 150,000 Tanks bought for $490
69s ago 200,000 Troops bought for $136
69s ago 1,000,000 Turrets bought for $145

this is my ingame news:

You purchased 200,000 Troops, 1,000,000 Turrets, 150,000 Tanks, for $260,441,998.

You purchased 200,000 Troops, 1,000,000 Turrets, 150,000 Tanks, for $260,441,999.

----------------

why in world would it have cost 1 dollar more on one country than the other. both are at 6% tax each

Marshal Game profile

Member
32,589

Jul 1st 2010, 18:51:30

rounding?
Patience: Yep, I'm with ELK and Marshal.

ELKronos: Patty is more hairy.

Gallery: K at least I am to my expectations now.

LadyGrizz boobies is fine

NOW3P: Morwen is a much harsher mistress than boredom....

afaik Game profile

Member
502

Jul 1st 2010, 19:01:37

strange one. the actual maths = $260,442,000 so it'll have to be rounding errors. how rounding errors occur on an item that has to be put for sale at a unit price..? ok, I've an idea... here's a theory:

the person selling has to put it for sale at unit price for set units (150,000 tanks for $490), and there can't be rounding errors in whole numbers.

the only slightly complicated item is the tax @ 1.06, so it's likely to be in the way the tax is calculated/added.

in fact, it seems to me tax is added twice.. the person selling is charged tax on sales, and the person buying is charged tax on market purchases...

Edited By: afaik on Jul 1st 2010, 19:05:55
See Original Post

Marshal Game profile

Member
32,589

Jul 1st 2010, 19:11:19

player (non-demo) gets taxed twice, selling and buying.
Patience: Yep, I'm with ELK and Marshal.

ELKronos: Patty is more hairy.

Gallery: K at least I am to my expectations now.

LadyGrizz boobies is fine

NOW3P: Morwen is a much harsher mistress than boredom....

Detmer Game profile

Member
4283

Jul 1st 2010, 19:12:27

Originally posted by Marshal:
player (non-demo) gets taxed twice, selling and buying.


Player gets taxed once. Shipment is taxed twice - once for seller once for buyer.

afaik Game profile

Member
502

Jul 1st 2010, 19:16:26

Yup, both players are taxed... not how it works with real tax, is it? each transaction gets taxed once.

Anyway, something to do with the tax would be my guess for the random rounding error, just because everything else about a sale is based on a whole integer.

qzjul Game profile

Administrator
Game Development
10,263

Jul 2nd 2010, 1:48:08

errr
what? it was different?

that's interesting.... it should be the same if it's the same process....

something for me to look at when i look through the code after my thesis is done....
Finally did the signature thing.