How do round to at most 2 decimal places

Use

    Math.round(num * 100) / 100

Published: January 10 2018

blog comments powered by Disqus