-
TeAm AnandTech
Question on stats rounding
Hey Bok, how's it going?
I have a question on the rounding scheme you use for all your stats. Do you basically just draw the number the projects gives you or do you do some rounding in your stats?
I'm asking because it's a bit odd to have my SIMAP stats say "30,133.764" points and my Spinhenge stats say "103.916", which looks like really big numbers, because my Rosetta stats say "150,185", wich really IS a big number.
Would it be possible to, let's say, cut off all number behind the ".", so the stats would look like
SIMAP: 30,133
Spinhenge: 103
Rosetta: 150,185
(or maybe: 30,133.00 / 103.00 / 150,185.00)
Now, I don't know if for projects like SoB the "behind the dot" digits are important or for any other projects.
It's just an idea I head for clearing up the visual recognition of high and low numbes on the stats pages of yours.
Thx for the hard work you put into these stats Bok, I know a lot of people use and appreciate them!
Greetings
BMC
-
Administrator
That's exactly what I do. Simap and Spinhenge provide the data to 3 decimal places, so that's what I output. I hold the most accurate numbers I possibly can. I suppose it is more confusing for you as the '.' is used as the delimiter in Germany (I've had to code around that before at work..)
It's only a config option though, simple to change if enough people wanted it... could even do it per user in statstool.. (something like - show at most X decimal places). I'll have a think about it and if anyone esle has any ideas, please feel free to post them here..
Thanks for the input!
Bok
-
TeAm AnandTech
Yes, for most Europeans the "." and "," are the other way around, so it's even more confusing at first.
An option in the user stats control panel would be awesome!
But I know that your stats are one heck of a load of work, so that really is a very minor thing to take a look at, if at all.
-
-
Administrator
I did do a bit of work on it, then got somewhat busy in real life. I just need to add the field to my table to allow it to be visible in statstool. Was waiting until I got a bit more time so that I could add in all the other projects that I've added in the last two months or so at the same time (which means immediately putting the code into the DCR etc otherwise it breaks).
Maybe I'll get time tomorrow or friday actually.
Bok
-
-
TeAm AnandTech
-
Administrator
They are in statstool but I haven't enabled them in the scripts yet.. sorry, ran out of time yesterday, had to pick my kids up..
but the hard part is done now... so it won't be long!!
Bok
-
-
-
Administrator
I probably got funding through 09/2006, otherwise I pay myself as I did for the last 2 years really.
as for the stats, well it's mostly working but there is a lot of places I need to update for the rounding so it takes time.. and my life is very busy. Next two weeks look a little calmer though..
Bok
-
=>Team Joker<=
-
TeAm AnandTech
Couldn't agree more with Laurenu2!
-
Administrator
I think this is done now, but I'd like a few people to try it out and have a look around.
What it does is replace the number of decimal places with the number put in on statstool (if that one is lower than the project default).
Try it and see..
Let me know if there are any places it hasn't taken affect as this means making sure some includes are in the correct order...
Bok
-
TeAm AnandTech
So, when I enter "2" all projects should show like xxxxx.xx points.
If I enter "0" all projects should show like xxxxxx points.
Is that right?
Where should these numbers be shown? On the personal sig? On the personal stats site? Or on all stats sites - if logged in.
-
Administrator
Not quite, it only affects it if the number you choose is less than the project default.
For instance it would be silly to alter a project where there was no decimal places in the first place. So an another example, SoB is 3 decimal places so my score is currently 1.066P, if I set my setting to 2 it comes out as 1.07P.
Should be everywhere, though it's possible some places are missing. I can already see that the users.php page isn't using it. I'll fix that now.
***Fixed users.php***
Bok
-
TeAm AnandTech
Works good for me with numbers 3,2,1.
But if I set the decimals to "0", it's like I left the space blank. Is it supposed to be that way? I hope not.
-
Administrator
Nope, I'll check it out. Should do no decimals. I hadn't tried 0 though.
-
Administrator
Fixed,
I was only going through the code if the value is set and of course php sees 0 as not set so it did not pass
if ($restrict_decimals)
{...do code...}
Bok
-
TeAm AnandTech
-
TeAm AnandTech
-
Administrator
hmmm,
I wasn't aware of it, but I'll find out and fix it today...
Bok
*EDIT* looks like I just broke it on the users.php and signature page when I altered them recently. The other pages are ok.. Fixing.
-
TeAm AnandTech
Yes, it works again. Thx Bok!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules