I would like to use toFixed(2) to format some decimal numbers, but i think the type of my variable isnt correct for it.
step = parseFloat( data.MinimumOrder );
console.log(typeof step);
For that, typeof returns number.
For this, it returns string, and the toFixed(2) function wont do anything.
step = parseFloat( data.MinimumOrder ) . toFixed(2);
data.MinimumOrder
can be 187.555 and 225.425.
What am i doing wrong?