Subject Re: [ib-support] arithmetic exception, numeric overflow and string truncation
Author usha
Hi Ivan

Thanks a lot. I understood what you r saying , so its the divide by zero
exception right.

Thanks
usha
----- Original Message -----
From: "Ivan Prenosil" <prenosil@...>
To: <ib-support@yahoogroups.com>
Sent: Tuesday, April 15, 2003 6:40 PM
Subject: Re: [ib-support] arithmetic exception, numeric overflow and string
truncation


> > the query that i am getting exception is
> >
> > Update IVITEMLOC
> > set QTYONHAND=QTYONHAND+-23.0,
> > averagecost = (((23.00000000) +(qtyonhand * averagecost)) / (23.0+
> > qtyonhand))
> > where ivitemid ='RBDPOLN' and ivlocid =1
>
> Perhaps your QTYONHAND in the table is zero, which lead to dividing by
zero:
>
> > set QTYONHAND= 0 + -23.0,
> > averagecost = (((23.00000000) +(qtyonhand * averagecost)) / (23.0 -
23.0))
>
>
> Ivan
> http://www.volny.cz/iprenosil/interbase
>
>
>
>
>
>
>
> To unsubscribe from this group, send an email to:
> ib-support-unsubscribe@egroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>