Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2004

    Unanswered: Decimal Division


    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,

  2. #2
    Join Date
    Nov 2004
    on the wrong server
    Provided Answers: 6
    SELECT - 10698.25 / 76782.11 works for me. Why don't you post the malfunctioning code.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts