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
- [jQuery] Re: how to change 2,5 to 2,50 ? Massimo Lombardo
- [jQuery] Re: how to change 2,5 to 2,50 ? weidc
- [jQuery] Re: how to change 2,5 to 2,50 ? Giovanni Battista Lenoci
- [jQuery] Re: how to change 2,5 to 2,... weidc
- [jQuery] Re: how to change 2,5 t... Giovanni Battista Lenoci
- [jQuery] Re: how to change ... Cesar Sanz
- [jQuery] Re: how to cha... Massimo Lombardo
- [jQuery] Re: how to change 2,5 to 2,50 ? RobG
- [jQuery] Re: how to change 2,5 to 2,50 ? Massimo Lombardo
- [jQuery] Re: how to change 2,5 to 2,50 ? RobG
- [jQuery] Re: how to change 2,5 to 2,50 ? mkmanning