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

c# - IMAP GMAIL getting folder list problem -

CUDA shared memory -