_goopa
Last Updated: February 25, 2016
·
557
· landongn

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".