PDA

View Full Version : Question on stats rounding



BlackMountainCow
09-04-2006, 06:04 AM
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!

:thumbs:

Greetings


BMC

Bok
09-04-2006, 06:54 AM
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

BlackMountainCow
09-04-2006, 08:14 AM
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.

:)

BlackMountainCow
10-04-2006, 12:19 PM
Not to press anybody or so, but any news on this one? :)

Bok
10-04-2006, 12:52 PM
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

BlackMountainCow
10-04-2006, 01:59 PM
Wow, awesome man! :rock:

Take your time Bok, real life just never respects virtual live, doesn't it? :thumbs:

BlackMountainCow
10-07-2006, 05:41 AM
Hi Bok!

I saw you made the addition of "Restrict Decimals" to the stats config. First of all, thanks for that! :thumbs:

But how does it work? Should one enter a number in that field, like "2" and thus have two deciamals only? 'Cause no matter what number I enter, it doesn't seem to have any effect on either the signature picture or my personal stats page whatsoever. SIMAP and F@H still show their three/two decimals. I ask 'cause I read in the other thread that you're finished with the code additions.

Thanks again for your work. I can only imagine how much work that is, as I don't know php at all.

:)


BMC


PS: The "Do not show percentage columns" doesn't have any effect for me as well. What is it supposed to do?

Bok
10-07-2006, 07:04 AM
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

IronBits
10-07-2006, 09:49 AM
Good job! :rock:

BlackMountainCow
10-29-2006, 10:17 AM
Hehe ... knock, knock ... it's me again. Any news, Bok? :idea:

And one more question: I see on the stats site that the Free-DC server is paied through 08/2006. Now, is that still true or haven't you updated that number in a while? :)

Bok
10-29-2006, 10:56 AM
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

LAURENU2
10-29-2006, 11:58 AM
Where the do you find time to do all this Bok :notworthy:take care of your family , do your job to make money to pay for all this, and maintain and upgrade this site all the time . Do you ever have time to go to the Bathroom:bathroom:
It has always amazed me how much you do for this Team and all the
DC projects __ BOK__And I:hiya: salute you:thumbs:
:allhail:

>
>Edit<
Time for all the Stat addicts to look into your Pockets
>>>>>>>>>>And help pay for all this<<<<<<<<<<<

BlackMountainCow
10-30-2006, 05:00 PM
Couldn't agree more with Laurenu2! :thumbs:

Bok
10-31-2006, 10:12 AM
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

BlackMountainCow
10-31-2006, 11:17 AM
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.

:idea:

Bok
10-31-2006, 11:27 AM
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 :cheers:

BlackMountainCow
10-31-2006, 04:27 PM
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.

:)

Bok
10-31-2006, 05:32 PM
Nope, I'll check it out. Should do no decimals. I hadn't tried 0 though.

Bok
11-01-2006, 12:30 PM
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

BlackMountainCow
11-01-2006, 03:36 PM
Yes, it works! Awesome job Bok!!

Many many thx for your work on this rounding issue.

:thumbs: :cheers: :thumbs:

BlackMountainCow
01-03-2007, 08:46 AM
Hey Bok!

First of all: Happy New Year! :|party|:

No for the bad part: Is the rounding/decimal restriction function broken? My personal stats page and my sig show all decimals again (F@H & SIMAP) and the setting in the stats tool config page doesn't change a thing.

What gives?

:)


BMC

Bok
01-03-2007, 09:06 AM
hmmm,

I wasn't aware of it, but I'll find out and fix it today...

Bok :thumbs:

*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.

BlackMountainCow
01-03-2007, 10:27 AM
Yes, it works again. Thx Bok! :thumbs: