Hi
I have a script which displays a price but currently is not fixed to 2 decimal places so a price such as $2.50 shows as $2.5 which to me looks wrong.
The line of code is
amount += parseFloat($(this).metadata().amount);
Looking around I see there is a function
toFixed()
but I am not sure how to combine it with the above.
Any help much appreciated.
Thanks
Mark