math operation problem

 

hi i want doing  a differential variation percentage,  i build  a part of  script  in this mode

 int shift = iBarShift(Cross_Correlato, 0, dt);
                        Print("index of the bar for the time ", TimeToStr(dt), " is ", shift);
                        Print("NZD  ", iOpen(Cross_Correlato, 0, shift));
                        PrintFormat("Time=%s  Price=%G  =>  X=%d  Y=%d", TimeToString(dt), price, x, y);
                        PricePrimario = iOpen(Cross_Correlato, 0, shift);
                        ObjectSetString(0,"ViPrimario",OBJPROP_TEXT,NormalizeDouble(price, 4)); 
                        ObjectSetString(0,"VcPrimario",OBJPROP_TEXT,NormalizeDouble(PricePrimario, 4));
                        double  PrimPercents=NormalizeDouble((((price - PricePrimario)/PricePrimario))*100,2);
                        ObjectSetString(0,"ViPercents",OBJPROP_TEXT,PrimPercents);

why if i use excel and  do for example first value 0.66647   second value  0.6160   return  -7.573%    but  if  i do with mql4  return  8.24  o_O ???

 
faustf:

hi i want doing  a differential variation percentage,  i build  a part of  script  in this mode

why if i use excel and  do for example first value 0.66647   second value  0.6160   return  -7.573%    but  if  i do with mql4  return  8.24  o_O ???

are the values upside down ? 

 
yep sorry for stupid question o_O