Author Topic: pointsforplaying token rounding off  (Read 1716 times)

Mac_09

  • Newbie
  • *
  • Posts: 27
    • View Profile
pointsforplaying token rounding off
« on: May 23, 2013, 02:46:33 PM »
I use the pointsforplaying token to display the possible points players can earn during the tournament.  I downloaded 3.2 today and now the points are rounding to the nearest whole number.  It was not doing this prior to downloading 3.2.  I have points and score precision set to 3.  Thanks.

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: pointsforplaying token rounding off
« Reply #1 on: May 23, 2013, 03:03:32 PM »
For the <pointsforplaying> token, the "precision" attribute was added, allowing you to override your Points Precision preference.  But if you don't include it, you should see any change as it defaults to whatever your preference is.

Mac_09

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: pointsforplaying token rounding off
« Reply #2 on: May 23, 2013, 03:12:48 PM »
I do not have an attribute for it defined.  Under Currency/Numbers, I have points precision set to 3, but it is still rounding.  For example, 1st place is worth 7.07 points, but it is displaying 7.00. Am I missing another preference?

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: pointsforplaying token rounding off
« Reply #3 on: May 23, 2013, 06:36:47 PM »
Oh, uh, yeah, sorry. I was thinking "rounding off", as in chopping off the decimal point and anything following it, but that's not what you meant.  :)

You're absolutely right.  And I can see the bug.  I'll fix it with a patch, hopefully later tonight.

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: pointsforplaying token rounding off
« Reply #4 on: May 23, 2013, 11:31:10 PM »
Patched.

Mac_09

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: pointsforplaying token rounding off
« Reply #5 on: July 10, 2013, 01:19:37 PM »
Hey Corey, same thing is happening with the pointsFormula token.

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: pointsforplaying token rounding off
« Reply #6 on: July 11, 2013, 04:39:48 PM »
Yup, same exact bone-headed change I made.  I remember noticing this when I fixed <pointsForPlaying>.  Cannot figure why I didn't fix it, too.