adding Math.round in setSelection
Merge pull request #8 from andrefarzat/parseint_selection

adding Math.round in setSelection