Bug in division operator in stats

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Bug in division operator in stats

Postby fizbin » Tue Feb 05, 2013 7:04 am

I tried this as a Custom Stat expression:
1 / 0.01

The answer (which you can see by adding the stat to a players report) is:
10.000000

Correct!

Then I tried this:
1 / 0.01

It says:
99.999999

Well, the answer we were looking for was 100. Judges? Okay, they'll accept it.

Then I tried this:
1 / 0.001

It says:
0

Uh. No, I'm sorry, the correct answer was 1000.

I have a hunch. Let's try just a hair smaller than the last value that worked, .01:

1 / 0.00999

It says:
0

So that's the borderline: .01 is the smallest that will work.
fizbin
 
Posts: 87
Joined: Tue Jan 08, 2013 5:25 am

Re: Bug in division operator in stats

Postby kraada » Tue Feb 05, 2013 11:17 am

What were you using as your format expression?
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Bug in division operator in stats

Postby fizbin » Tue Feb 05, 2013 3:35 pm

None, Percent, and Number formats all produce the same result for 1 / .001, namely 0. Money format produces the result "$0.00".
fizbin
 
Posts: 87
Joined: Tue Jan 08, 2013 5:25 am

Re: Bug in division operator in stats

Postby kraada » Tue Feb 05, 2013 4:09 pm

Could you please open a support ticket for this issue? That will help us keep track of it and make sure it gets fixed - and you'll get automated notification when it is.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Bug in division operator in stats

Postby fizbin » Tue Feb 05, 2013 6:28 pm

Okay, support ticket submitted.
fizbin
 
Posts: 87
Joined: Tue Jan 08, 2013 5:25 am


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: sirokoroko9 and 41 guests

cron
highfalutin