Monday, April 10, 2017

Round a number to two digits in JavaScript or TypeScript.

let foo = Math.round(bar * 100) / 100;

No comments:

Post a Comment