14 Replies Latest reply: Apr 27, 2017 12:31 PM by Peter Cammaert RSS

    Dividing variables bring wrong values

    Mohammad Adnan Ansari

      I have defined the below variables in the system:

       

      vSales1

      vSales2

       

      vTickets1

      vTickets2

       

      vSales = $(vSales1) + $(vSales2)

      vTickets = $(vTickets1) + $(vTickets2)

       

      AverageSales = ($(vSales1) + $(vSales2)) / ($(vTickets1)+$(vTickets2))

      bring rights results.

       

      where as the below formula brings wrong results:

       

      AverageSales = $(vSales) / $(vTickets)

       

      any idea how to resolve this?