Disambiguate the operator precedence

This commit is contained in:
Remco Bloemen
2018-08-24 14:11:45 -07:00
parent 7f78d7da9d
commit f6080367fe

View File

@@ -109,9 +109,9 @@ contract LibMath is
// Otherwise, we want the relative rounding error to be strictly
// less than 0.1%.
// The relative error is `remainder / numerator * target`.
// The relative error is `remainder / (numerator * target)`.
// We want the relative error less than 1 / 1000:
// remainder / numerator * denominator < 1 / 1000
// remainder / (numerator * denominator) < 1 / 1000
// or equivalently:
// 1000 * remainder < numerator * target
// so we have a rounding error iff: