Use 138.toFixed(int) to round numbers
Rather than using Math.Round, use toFixed() to get an arbitrary decimal limit to your rounded number.
note: this isn't extremely precise, per se, but it works well for things that just need to be "close".
Written by Landon Noss
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Math
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#