From: Marco Costalba Date: Sat, 10 Aug 2013 15:11:13 +0000 (+0200) Subject: Fix GrainSize rounding error X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=94a3608ab9f2334784ac3b111dc79c9eb5e33ba3;hp=94a3608ab9f2334784ac3b111dc79c9eb5e33ba3;p=stockfish Fix GrainSize rounding error The rounding formula is different between positive and negative scores due to the GrainSize/2 term that is asymmetric. So use truncation instead of rounding. This guarantees that evaluation is rounded to zero in the same way for both positive and negative scores. Found with position's flip bench: 4634244 ---