Aderan Wars
Would you like to react to this message? Create an account in a few clicks or log in to continue.

minor market bug

4 posters

Go down

minor market bug Empty minor market bug

Post by Nomad Sun Feb 08, 2009 11:47 pm

Market said I had 9 MT left. I used 4 getting as much Kewul as allowed and then used 5 to get a 24hr protection

You have 0 Market Reserves at your disposal
You have -1 Market Trades at your disposal
You have used 1 24 Hour Protections in the last week
Your last 48 Hour Protection was used on: Never

Not sure if its a rounding issue, cosmetic, or an actual bug.
Nomad
Nomad
Alliance Leader
Alliance Leader

ID : WORD OF THE DAY
Hipocracy
hy·poc·ri·sy
Show Spelled[hi-pok-ruh-see]
–noun, plural -sies.

1. a pretense of having a virtuous character, moral or religious beliefs or principles, etc., that one does not really possess.
2. the practice of professing standards, beliefs, etc, contrary to one's real character or actual behavior, esp the pretense of virtue and piety
3. a pretense of having some desirable or publicly approved attitude.

Number of posts : 4259
Location : Everywhere and nowhere at all.
Registration date : 2008-12-17

Back to top Go down

minor market bug Empty Re: minor market bug

Post by chaos Mon Feb 09, 2009 12:29 am

i had it be4 but admin sed he sorted it

dnt worry, it should auto correct when u next generate market turns neways,
chaos
chaos
Aderan Miner
Aderan Miner

ID : ???
Alliance : Your Guess?
Age : 33
Number of posts : 324
Location : Atlantis, Pegasus Galaxy, Universe
Registration date : 2008-09-04

Back to top Go down

minor market bug Empty Re: minor market bug

Post by Admin Mon Feb 09, 2009 7:33 am

it's on the same level of when you sometimes see people with -0 kuwal. it's something with the rounding where you manage to end up with -0.00000045 Market turns or kuwal.

You see it as -1 as it gets rounded down so -0.00000032 becomes -1, but in the database you still have -0.000000032, so you don't really get any more or less MT's as you would normally have.

I've stil yet to figure out why it happens but it only does when before the trade you end up with let's say 3.9999999996 mt's it instead of rounding down to 3 it rounds up to 4 for some random reason.
Admin
Admin
Admin

Number of posts : 4363
Registration date : 2008-08-18

http://www.aderanwars.com

Back to top Go down

minor market bug Empty Re: minor market bug

Post by Lord Pegasus Mon Feb 09, 2009 10:49 am

that rounding is not right , -0.00000045 can not round down to -1 rounding the 5 would make the 4 become a 5 , then from then it would make the next one a 1 and from then it becomes 0 all the way through

Lord Pegasus
Aderan Farmer
Aderan Farmer

ID : 10
Alliance : World Republic
Age : 35
Number of posts : 91
Location : Guernsey Channel Islands
Registration date : 2009-01-07

Back to top Go down

minor market bug Empty Re: minor market bug

Post by Admin Mon Feb 09, 2009 10:51 am

fixed, had to do with something I did to try and fix the rounding thing.

and pegasus you're wrong, there are 3 types of rounding functions, round ceil and floor. With the market i'm using the floor function so obviously each number gets rounded down, so -0.0000000034 rounds to the next lower full number, which is -1

since obviously everyone knows -1<0
Admin
Admin
Admin

Number of posts : 4363
Registration date : 2008-08-18

http://www.aderanwars.com

Back to top Go down

minor market bug Empty Re: minor market bug

Post by Lord Pegasus Mon Feb 09, 2009 10:53 am

well that only works if you are round WHOLE numbers , and i will say i may be wrong in this case but in the case of the rounding i was taught at school i was right lol

Lord Pegasus
Aderan Farmer
Aderan Farmer

ID : 10
Alliance : World Republic
Age : 35
Number of posts : 91
Location : Guernsey Channel Islands
Registration date : 2009-01-07

Back to top Go down

minor market bug Empty Re: minor market bug

Post by Admin Mon Feb 09, 2009 11:18 am

well your explanation was correct
but as you know there are 3 ways to round numbers, yours was just the general for the nearest number, here it gets rounded to the next lowest number
Admin
Admin
Admin

Number of posts : 4363
Registration date : 2008-08-18

http://www.aderanwars.com

Back to top Go down

minor market bug Empty Re: minor market bug

Post by Nomad Mon Feb 09, 2009 1:33 pm

I figured it was a rounding issue and cosmetic in nature, just wanted to be sure, Thanks Admin.
Nomad
Nomad
Alliance Leader
Alliance Leader

ID : WORD OF THE DAY
Hipocracy
hy·poc·ri·sy
Show Spelled[hi-pok-ruh-see]
–noun, plural -sies.

1. a pretense of having a virtuous character, moral or religious beliefs or principles, etc., that one does not really possess.
2. the practice of professing standards, beliefs, etc, contrary to one's real character or actual behavior, esp the pretense of virtue and piety
3. a pretense of having some desirable or publicly approved attitude.

Number of posts : 4259
Location : Everywhere and nowhere at all.
Registration date : 2008-12-17

Back to top Go down

minor market bug Empty Re: minor market bug

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum