Sorry about the title, it a little bit hard to explain this question in a title.
So I want to round a number to its nearest scale/factor(always up) or how this is called when its added in a text field. I want to do this with javascript but coul d not find a function or example for this, but I hope that there is a function for this solution?
Example:
Scale/factor = 12
User enters the number 3 , the number should change into 12
User enters the number 25, the number should change into 36
User enters the number 47, the number should change into 48