Good morning: I have the following amount
var num = 54
var num2 = 1325
var num3 = 1293824
when applying toLocaleString they are left as follows:
num.toLocaleString(undefined, {minimumFractionDigits: 2}) // Resultado 54,00
num2.toLocalString(undefined, {minimumFractionDigits: 2}) // 1.325,00
num3.toLocalString(undefined, {minimumFractionDigits: 2}) // 12.938,24
When I need the results in the following way:
54.00
1,325.00
12,938.24
Separator for thousands must be "," Separator for decimals should be "."
Thank you very much in advance.