only two value allow after decimal using javascript code example
Example 1: javascript snumber two decimal places as string
let money = 1.6;
money.toFixed(2); // 1.60
Example 2: tolocalestring javascript currency fixing 2 decimal places
var num = 2046430;
num.toLocaleString(undefined, {minimumFractionDigits: 2}) // 2,046,430.00