Page 1 of 1

Bug in division operator in stats

PostPosted: Tue Feb 05, 2013 7:04 am
by fizbin
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.

Re: Bug in division operator in stats

PostPosted: Tue Feb 05, 2013 11:17 am
by kraada
What were you using as your format expression?

Re: Bug in division operator in stats

PostPosted: Tue Feb 05, 2013 3:35 pm
by fizbin
None, Percent, and Number formats all produce the same result for 1 / .001, namely 0. Money format produces the result "$0.00".

Re: Bug in division operator in stats

PostPosted: Tue Feb 05, 2013 4:09 pm
by kraada
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.

Re: Bug in division operator in stats

PostPosted: Tue Feb 05, 2013 6:28 pm
by fizbin
Okay, support ticket submitted.

highfalutin