numbers - Round just decimal in Javascript -


i have value that:

20.93

i'd round

20.90

how can in javascript ?

thanks!

multiply number 10, round , divide number 10:

var result = math.round(20.93 * 10) / 10 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -