replaced floor by round to clamp values

the floor version makes a regression of the detection performance (49 more false negatives)
also corrected indentation and alignment ;)