How to round to at most 2 decimal places in Javascript

PHOTO EMBED

Fri Jun 04 2021 07:24:03 GMT+0000 (Coordinated Universal Time)

Saved by @hassanms #javascript

Math.round((num + Number.EPSILON) * 100) / 100
content_copyCOPY

https://stackoverflow.com/questions/11832914/how-to-round-to-at-most-2-decimal-places-if-necessary