Alernative rounding
Merge pull request #2 from qbonnard/vs13

replaced floor by round to clamp values