Thursday, July 3, 2014

How to get number upto n decimal places in javascript use .toFixed function

kittycorpusrequiredatthetimeofretirement.toFixed(n)

e.g. n=0,n=2

No comments:

Post a Comment