Minesweeper Gaming Statistics


  1. Posts : 1
    Windows 7 Professional 64bit
       #1

    Minesweeper Gaming Statistics


    I don't know if this has been posted before, but I was wondering if anyone else has noticed this.

    The percentage statistics are a little off for games won. I posted a picture below. It says I won 9 out of 10 games but the percentage won is 89% instead of 90%. Is there a reason for this, or is it a minor bug?
    Attached Thumbnails Attached Thumbnails Minesweeper Gaming Statistics-capture_minesweeper.png  
      My Computer


  2. Posts : 5,747
    7600.20510 x86
       #2

    lol no offense but is this really something to worry about?

    8/9 = .88888 = ~.89 = 89% (no I can't make the infinite 8 repeating symbol on here haha) so it probably just didn't calculate the last game as of that report.
      My Computer


  3. Posts : 9,582
    Windows 8.1 Pro RTM x64
       #3

    Just tried it, and the same thing occurs with mine.
    Minesweeper Gaming Statistics-capture.png
      My Computer


  4. Posts : 5,747
    7600.20510 x86
       #4

    Is there a way to close the game, reopen it and then see statistics before starting a new game?
      My Computer


  5. Posts : 9,582
    Windows 8.1 Pro RTM x64
       #5

    Click on Game Statistics. Alternatively, press F4.
      My Computer


  6. Posts : 5,747
    7600.20510 x86
       #6

    Right yeah lol What I meant was, does it fix the percentage problem by doing that?
      My Computer


  7. Posts : 2,528
    Windows 7 x64 Ultimate
       #7

    It's a common programming error when using floating point which is ALWAYS +/- 0.000000000000001

    You HAVE to properly round and truncate floating point math to get the correct figure.

    The code "double d = 9.0 / 10.0;"

    Will produce the result 0.90000000000000002 according to a test I just did. Depending on how they were actually calculating the value it could come out to be something like 0.89999999999999998. Which truncated without rounding would be 0.89. 0.89999999999999998+0.005(two place rounding value) would be 0.90500000000000003 which when truncated to two decimal places would then be 0.90 the correct answer.

    Another amusing floating point bug you'll see a lot is a number being reported as "-0.0" :)
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:41.
Find Us