I am stuck at one point,like how can i put a comma separator to a decimal number which are fixed to two decimals
example: 50506.2569 to 50,506.25
what i am doing is
var variable = 32568.595;
var fix = variable.toFixed(2)
var seperator = fix.toLocaleString('en-in')
console.log(seperator);
this one is giving me 32568.60
but i am trying to get 32,568.60