Closed soanvig closed 3 years ago
If limit is not rounded to step ratio, they are vulnerable to be exceeded by value rounded to stepRatio.
E.g.:
stepRatio = 0.1; value = 0.998; limit = 0.999; roundedValue = 1; roundedValue > limit
It should not be a problem, but better consistency === better code.
Closing, because this won't be issue in v2 - limits are applied after rounding value
If limit is not rounded to step ratio, they are vulnerable to be exceeded by value rounded to stepRatio.
E.g.:
It should not be a problem, but better consistency === better code.