Wednesday, March 7, 2012

Decimal Division

Hi,

I'm trying to divide two decimal(19,4) numbers but it keeps giving me a Divide by 0 error.

- 10698.25 / 76782.11 = -0.13 (but I get a Divide by 0)

I looked it up in the Sql Server docs, does the Divide by 0 error also cover Stack overflows?

If so, how do I get around this?

Many thanks,
StuartSELECT - 10698.25 / 76782.11 works for me. Why don't you post the malfunctioning code.

No comments:

Post a Comment