I need to format a number so it displays out to the fifth decimal place.
Also, if I tell to 3.49999 to display out to the 2nd decimal place, will it show 3.50 or 3.49?
Thanks!
you can use the formatNumber(number, 5) function to get your desired results. number being the argument, and 5 being how many places you want the result to show.
And yes, if you ask for two decimal places on 3.499999, then you will get 3.50 --
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.