Fix RoundToLevels not working with an even amount of levels if the threshold is the same (#21863)
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
}
|
||||
|
||||
var preround = toOne * (levels - 1);
|
||||
if (toOne <= threshold || levels <= 2)
|
||||
if (toOne < threshold || levels <= 2)
|
||||
{
|
||||
return (int) Math.Ceiling(preround);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user