Change evaluation order for calculating percentage #918

Merged
merged 1 commit into from Jan 3, 2013

2 participants

@jtward

Rounding errors are introduced when calculating the percentage when the total is 100 (for example if percentages have already been calculated). Calculating total/100 first eliminates the error in this case.

@jtward jtward Change evaluation order for calculating percentage
Rounding errors are introduced when calculating the percentage when the total is 100 (for example if percentages have already been calculated). Calculating (total/100) first eliminates the error in this case.
f6198f5
@dnschnur dnschnur was assigned Jan 3, 2013
@dnschnur
Flot member

Thanks for finding this, and for your patch!

@dnschnur dnschnur merged commit 1cd2cd9 into flot:master Jan 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment