11

I just created an account on a site (I hadn't cast any votes yet), chose Electorate as the next badge on my profile and got the following:

-2147483648/25 percent on questions

It's still there. I tested on other sites (where I have not voted so far) and got the same discouraging percentage progress (-2147483648/25 percent on questions). From a mathematical point of view there's no clear answer which percentage should be shown (it would be 0/0); perhaps it's better to replace the text by You have not cast any votes - the same message as in the votes tab: No votes cast

3
  • 4
    Well it does make sense why it's -2147483648: it's a 32 bit signed int! That said, definitely a bug :)
    – mhlester
    Apr 29, 2015 at 20:34
  • Mhlester is right. Also, don't be discouraged! After you cast a single vote, the percent will look a little more relieving...
    – M.A.R.
    Apr 29, 2015 at 21:14
  • 1
    Reproduced on Super User with an account created 3 months ago (without casting any votes).
    – user12205
    Apr 29, 2015 at 21:32

1 Answer 1

7

So, this was due to a divide by zero and some casting of the results.

Turns out that casting NaN to an Int32 results in -2147483648.

Fixed in the next build.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .