division by zero 0/0

Hello Dear

Erro division by zero 0/0

ItemTotal := “Net Amount”;

Disper := 1;

Disper := ((“Discount Amount”+“Total Discount”)/Price)*100;

TotPrice := TotPrice + Price;

TotDis := TotDis + (“Discount Amount”+“Total Discount”);

TotDisPer := TotDis/TotPrice*100;

ItemTotal := “Net Amount”;

Disper := 0;

Disper := ((“Discount Amount”+“Total Discount”)/Price)*100;

TotPrice := TotPrice + Price;

TotDis := TotDis + (“Discount Amount”+“Total Discount”);

TotDisPer := TotDis/TotPrice*100;

Check the denominator before doing a division (if you are not sure about the result)

if (TotPrice)

{

TotDisPer := TotDis/TotPrice*100;

}

It looks like Price is 0

try

IF Price <> 0 THEN

Disper := ((“Discount Amount”+“Total Discount”)/Price)*100;

Same for TotPrice

IF TotPrice <> 0 THEN

TotDisPer := TotDis/TotPrice*100

Mr. Mohana.

Thank you This is soultioin

And Thank To All For Help Me