On Jul 7, 8:11 pm, weidc <mueller.juli...@googlemail.com> wrote:
> hi,
>
> thats my code:
>
> endpreis =Math.round(endpreis*100)/100;
>
> to round the price of something but i'd like to have 2,00 or 2,50
> instead of 2 and 2,5.
>
> i'd be happy about any help.

To format a number in javascript with exactly two decimal places it is
a good idea to try a resource dedicated to javascript:

<URL: http://www.jibbering.com/faq/#formatNumber >


--
Rob

Reply via email to