The Tournament Director Forums
Main => Help Me => Topic started by: CruiseLite on January 03, 2016, 01:55:09 PM

Not sure if this is a bug or if I'm doing something wrong but it looks like the prize rounding is incorrect in a couple of the attached screen shots.
#1 is without rounding to show the base payout
#2 is round down to nearest .25 and looks wrong
#3 is round down to nearest .50 and looks correct
#4 is round down to nearest .75 and looks wrong
Not a big deal at all; I just happened to notice it when I was playing around with changing our prize structure for 2016 season

Yep, it's a bug. The rounding function is supposed to be using the "round to nearest" value to determine precision (how many digits after the decimal point), but it is instead using the value itself. In the case of the 4th place prize, the actual prize value is $10.40, which, due to conversion, is 10.4. So it's using a precision of 1 (only 1 place after the decimal point). It correctly calculates the rounded down value as $10.25, but drops the 5 so the value has a precision of 1 (10.2). Displayed as currency it becomes $10.20.
Thanks for reporting this. I'll get it fixed for the next beta.

Thank you sir!