I'd like to do a "rounding" of values within the javascript.
I know that the Math.Round()
function rounds, but only decimal, I need the following situations.
1 - 10 in 10 ... If the user types 155, the system rounds to 160, If the user types 152 for example, the system rounds to 150.
2 - From 500 in 500 ... If the user types 4300, the system rounds to 4500, if the user types 4220, the system rounds to 4000
I honestly have no idea how to do this.
Thank you in advance