I want to round the number in specific format in jquery
For ex.
var First = 3.52
if last value after decimal point 2
is less then 3 then it should be round to 0
if last value after decimal point 2
is beetween then 3 to 7 then it should be round to 5
if last value after decimal point 2
is more then 7 then it should be round to 10
Like
if(var First = 1.21) { var Answer = 1.20 }
if(var First = 1.24) { var Answer = 1.25 }
if(var First = 1.28) { var Answer = 1.30 }
i have tried Round and Ceil , Floor but doesnt work for me