Perhaps you are looking for the Math.round, Math.ceiling, and Math.floor?(assuming i understand the question you have)