minor market bug
4 posters
Page 1 of 1
minor market bug
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
Not sure if its a rounding issue, cosmetic, or an actual bug.
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- Alliance Leader
- ID :
Number of posts : 4259
Location : Everywhere and nowhere at all.
Registration date : 2008-12-17
Re: minor market bug
i had it be4 but admin sed he sorted it
dnt worry, it should auto correct when u next generate market turns neways,
dnt worry, it should auto correct when u next generate market turns neways,
chaos- Aderan Miner
- ID : ???
Alliance : Your Guess?
Age : 33
Number of posts : 324
Location : Atlantis, Pegasus Galaxy, Universe
Registration date : 2008-09-04
Re: minor market bug
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.
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.
Re: minor market bug
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
- ID : 10
Alliance : World Republic
Age : 35
Number of posts : 91
Location : Guernsey Channel Islands
Registration date : 2009-01-07
Re: minor market bug
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
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
Re: minor market bug
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
- ID : 10
Alliance : World Republic
Age : 35
Number of posts : 91
Location : Guernsey Channel Islands
Registration date : 2009-01-07
Re: minor market bug
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
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
Re: minor market bug
I figured it was a rounding issue and cosmetic in nature, just wanted to be sure, Thanks Admin.
Nomad- Alliance Leader
- ID :
Number of posts : 4259
Location : Everywhere and nowhere at all.
Registration date : 2008-12-17
Similar topics
» Messages {minor/cosmetic}
» [minor issue]Just a little typo?
» /ajaxchat - minor issue.
» Minor inconsistancies in FAQ/Rules
» The market
» [minor issue]Just a little typo?
» /ajaxchat - minor issue.
» Minor inconsistancies in FAQ/Rules
» The market
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|