Answers for "give 2 decimals to number in js"

14

js number 2 decimal places

(3.141596).toFixed(2);	// 3.14
Posted by: Guest on August-13-2020
0

to 2 decimal places javascript

var discount = Math.round((100 - (price / listprice) * 100) * 100) / 100;
Posted by: Guest on April-12-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language