2 Replies Latest reply on Oct 29, 2009 6:47 AM by hansvdzijl

    calculate numbers with digits

    hansvdzijl

      Hi all,

       

      Can someone tell me how to calculate numbers with digits.

      Let me explain first. The price comes in a xml format like: <price>2,90</price> (comma instead of dot)

      var price:String = XML(dgProducts.selectedItem).child("price").toString();

      total += Number(price); --> this won't work, if I use 2.90 there is no problem.

       

      So, how can I fix this?

       

      Hans