(int)currentResult is a truncation, so we need to add 0.5 for proper rounding. also changed inefficient "constrain" into faster max(min( ...))
148 KiB
148 KiB
(int)currentResult is a truncation, so we need to add 0.5 for proper rounding. also changed inefficient "constrain" into faster max(min( ...))