First you do a get value.
Next you make a JavaScript integer and put the get value in argument [0].
In the script you copy past.
return Math.floor(arguments[0]);
Then you choose set value and set the script at value.