{
  "category": "Engineering functions",
  "display_name": "IMDIV",
  "entry_kind": "built_in_function",
  "eval_api": {
    "method": "POST",
    "url": "https://handbook.dnacalc.com/api/eval"
  },
  "function_id": "FUNC.IMDIV",
  "implementation_state": {
    "answer_bank": {
      "excel_builds": [
        "20430"
      ],
      "larger_numeric": 0,
      "last_bit": 0,
      "matched": 2066,
      "other_mismatch": 1,
      "refused": 0,
      "rows": 2067,
      "unread": 0,
      "worst_ulp": 0
    },
    "detail": "Of 2,071 recorded answers (2,067 in the answer bank and 4 workbook cells), 1 do not match: 1 differ in kind or value.",
    "dnacalc_commit": "9e1884369a678158dd82d3d74188daf986995e87",
    "in_catalogue": true,
    "state": "differs",
    "state_label": "Known larger differences",
    "summary": "Known larger differences on 1 of 2,071 recorded answers",
    "workbook_corpus": {
      "cells": 4,
      "matched": 4
    }
  },
  "implementations": [
    {
      "commit": "9e1884369a678158dd82d3d74188daf986995e87",
      "flavour": "excel-compatibility-candidate",
      "language": "Rust",
      "name": "CalcFunc",
      "own_code": [
        "https://github.com/DnaCalc/DnaCalc/blob/9e1884369a678158dd82d3d74188daf986995e87/crates/calc-func/src/catalogue/engineering.rs#L235-L239"
      ],
      "repository": "https://github.com/DnaCalc/DnaCalc",
      "shared_code": [
        "catalogue/engineering::complex_of",
        "catalogue/engineering::complex_text",
        "ported/complex_decimal::nearest_even",
        "ported/complex_decimal::decimal_pair",
        "ported/complex_family::parse_ascii_decimal_15",
        "ported/complex_family::ParsedComplex::new",
        "ported/complex_family::ParsedComplex::abs",
        "ported/complex_family::normalize_zero",
        "ported/complex_family::number_to_excel_text",
        "ported/complex_family::format_complex_text",
        "ported/complex_family::parse_real_number",
        "ported/complex_family::find_real_imag_split",
        "ported/complex_family::parse_imag_coeff",
        "ported/complex_family::parse_complex_text",
        "ported/complex_family::suffix_from_operands"
      ],
      "source": "https://github.com/DnaCalc/DnaCalc/blob/9e1884369a678158dd82d3d74188daf986995e87/crates/calc-func/src/catalogue/engineering.rs#L235-L239",
      "state": "differs",
      "suite": null,
      "summary": "Known larger differences on 1 of 2,071 recorded answers"
    }
  ],
  "json_url": "https://handbook.dnacalc.com/api/functions/FUNC.IMDIV.json",
  "name": "IMDIV",
  "notes": [],
  "schema": "efh.function-reference/v1",
  "section_order": [
    "what-it-does",
    "try-it",
    "quirks",
    "how-to-implement",
    "version-differences",
    "alternatives"
  ],
  "sections": {
    "alternatives": "\n[IMPRODUCT](FUNC.IMPRODUCT.md) multiplies; [IMCONJUGATE](FUNC.IMCONJUGATE.md) supplies the conjugate often used in a mathematical derivation of division.\n\n\n",
    "how-to-implement": "\nParse the two coefficients and suffix before doing arithmetic; use the common complex formatter afterward. Retain suffix consistency, suppress a zero component and omit the coefficient one before the imaginary unit. Formatting and parsing have their own fifteen-significant-digit rules, so testing only the algebra misses observable behaviour.\n\nUse the scaled division implemented in the product. For numerator `(a,b)` and denominator `(c,d)`, if `abs(c)>=abs(d)`, set `r=d/c`, `v=c+d*r`, and return `((a+b*r)/v,(b-a*r)/v)`. Otherwise set `r=c/d`, `v=d+c*r`, and return `((a*r+b)/v,(b*r-a)/v)`. This avoids directly forming `c*c+d*d`. In the example `r=1`, `v=2`, giving `(6/2,-2/2)=(3,-1)`. The code flushes subnormal output components before formatting. The retained witnesses distinguish this graph from the squared-denominator formula.\n\n\n",
    "quirks": "\nComplex arguments may be real numbers or text such as `\"2-3i\"`. Use lowercase `i` or `j`; operands in one call must agree on the suffix. The current parser rejects malformed complex text with `#NUM!` and logical values with `#VALUE!`. A complex result is text, so ordinary worksheet arithmetic does not automatically treat it as a pair of numeric components. A zero complex denominator gives `#NUM!` in the current implementation. Large components make the choice of division formula observable.\n\n\n",
    "sources": "\n- [Microsoft: IMDIV function](https://support.microsoft.com/en-us/office/imdiv-function-a505aff7-af8a-4451-8142-77ec3d74d83f), opened 6 November 2026; syntax, documented argument rules and errors.\n- [DnaCalc implementation](https://github.com/DnaCalc/DnaCalc/blob/da3ecc4fb19a3a5529708c311d0e8f05688ac165/crates/calc-func/src/ported/complex_family.rs); implementation steps and the limits identified in the text.\n\n",
    "try-it": "\n`=IMDIV(\"4+2i\",\"1+i\")` returns `\"3-i\"`: multiplying `3-i` by `1+i` recovers `4+2i`.\n\n\n",
    "version-differences": "The recorded environments below distinguish a reading from a same-input comparison. Counts describe captured inputs in each environment; overlapping captures and comparisons are not totals of unique worksheet calls.\n\n| Excel 16.0 build | Platform and CPU | Captured inputs |\n|---|---|---:|\n| 20430 | Windows, 64-bit, CPU not recorded | 2,067 |\n\nThe record contains no same-input comparison between these environments. Reading different inputs on different builds does not establish either a version change or cross-build agreement.\n\n[Recorded environments and comparison details](https://github.com/DnaCalc/ExcelFunctionsHandbook/blob/5dc75391aa5125ccc5abdb095da85950980d6fd8/content/evidence/environments/FUNC.IMDIV.json).",
    "what-it-does": "\n`IMDIV(inumber1, inumber2)` divides a complex numerator by a complex denominator and returns complex text.\n\n\n"
  },
  "signature": {
    "display": "IMDIV(inumber1, inumber2)",
    "parameters": [
      {
        "description": null,
        "name": "inumber1",
        "optional": false,
        "repeats": false
      },
      {
        "description": null,
        "name": "inumber2",
        "optional": false,
        "repeats": false
      }
    ],
    "trailing_repeats": false
  },
  "sources": {
    "metadata": {
      "admission": {
        "label": "implemented",
        "reason": null
      },
      "arity": {
        "max": 2,
        "min": 2
      },
      "category": "Engineering functions",
      "classification": {
        "arg_preparation_profile": "ValuesOnlyPreAdapter",
        "coercion_lift_profile": "Custom",
        "determinism_class": "Deterministic",
        "error_collapse_profile": "None",
        "fec_dependency_profile": "None",
        "host_interaction_class": "None",
        "kernel_signature_class": "Custom",
        "rich_value_usage": "RichBlind",
        "surface_fec_dependency_profile": "None",
        "thread_safety_class": "SafePure",
        "volatility_class": "NonVolatile"
      },
      "descriptions": {
        "long": null,
        "short": "Quotient of two complex numbers",
        "short_source": "dna-calc-own"
      },
      "docs": {
        "english_description": "Returns the quotient of two complex numbers",
        "microsoft_url": "https://support.microsoft.com/en-us/office/imdiv-function-a505aff7-af8a-4451-8142-77ec3d74d83f"
      },
      "entry_kind": "built_in_function",
      "localized_family_names": null,
      "localized_names": [
        {
          "locale": "ar-SA",
          "name": "IMDIV"
        },
        {
          "locale": "bg-BG",
          "name": "IMDIV"
        },
        {
          "locale": "cs-CZ",
          "name": "IMDIV"
        },
        {
          "locale": "da-DK",
          "name": "IMAGDIV"
        },
        {
          "locale": "de-DE",
          "name": "IMDIV"
        },
        {
          "locale": "el-GR",
          "name": "IMDIV"
        },
        {
          "locale": "en-AU",
          "name": "IMDIV"
        },
        {
          "locale": "en-GB",
          "name": "IMDIV"
        },
        {
          "locale": "en-US",
          "name": "IMDIV"
        },
        {
          "locale": "es-ES",
          "name": "IMDIV"
        },
        {
          "locale": "et-EE",
          "name": "IMDIV"
        },
        {
          "locale": "fi-FI",
          "name": "KOMPLEKSI.OSAM"
        },
        {
          "locale": "fr-FR",
          "name": "COMPLEXE.DIV*"
        },
        {
          "locale": "he-IL",
          "name": "IMDIV"
        },
        {
          "locale": "hr-HR",
          "name": "IMDIV"
        },
        {
          "locale": "hu-HU",
          "name": "KÉPZ.HÁNYAD"
        },
        {
          "locale": "id-ID",
          "name": "IMDIV"
        },
        {
          "locale": "it-IT",
          "name": "IMDIV"
        },
        {
          "locale": "ja-JP",
          "name": "IMDIV"
        },
        {
          "locale": "ko-KR",
          "name": "IMDIV"
        },
        {
          "locale": "lt-LT",
          "name": "IMDIV"
        },
        {
          "locale": "lv-LV",
          "name": "IMDIV"
        },
        {
          "locale": "nb-NO",
          "name": "IMDIV"
        },
        {
          "locale": "nl-NL",
          "name": "C.QUOTIENT"
        },
        {
          "locale": "pl-PL",
          "name": "ILORAZ.LICZB.ZESP"
        },
        {
          "locale": "pt-BR",
          "name": "IMDIV"
        },
        {
          "locale": "pt-PT",
          "name": "IMDIV"
        },
        {
          "locale": "ro-RO",
          "name": "IMDIV"
        },
        {
          "locale": "ru-RU",
          "name": "МНИМ.ДЕЛ"
        },
        {
          "locale": "sk-SK",
          "name": "IMDIV"
        },
        {
          "locale": "sl-SI",
          "name": "IMDIV"
        },
        {
          "locale": "sr-Latn-RS",
          "name": "IMDIV"
        },
        {
          "locale": "sv-SE",
          "name": "IMDIV"
        },
        {
          "locale": "th-TH",
          "name": "IMDIV"
        },
        {
          "locale": "tr-TR",
          "name": "SANBÖL işlevi"
        },
        {
          "locale": "uk-UA",
          "name": "IMDIV"
        },
        {
          "locale": "vi-VN",
          "name": "IMDIV"
        },
        {
          "locale": "zh-CN",
          "name": "IMDIV"
        },
        {
          "locale": "zh-HK",
          "name": "IMDIV"
        },
        {
          "locale": "zh-TW",
          "name": "IMDIV"
        }
      ],
      "signature": {
        "display": "IMDIV(inumber1, inumber2)",
        "parameters": [
          {
            "description": null,
            "name": "inumber1",
            "optional": false,
            "repeats": false
          },
          {
            "description": null,
            "name": "inumber2",
            "optional": false,
            "repeats": false
          }
        ],
        "trailing_repeats": false
      },
      "surface_name": "IMDIV",
      "version_marker": null,
      "xlcall": {
        "code": "397",
        "symbol": "xlfImdiv"
      }
    },
    "microsoft": "https://support.microsoft.com/en-us/office/imdiv-function-a505aff7-af8a-4451-8142-77ec3d74d83f"
  },
  "try_it": {
    "formula": "=IMDIV(\"4+2i\",\"1+i\")"
  },
  "url": "https://handbook.dnacalc.com/functions/IMDIV.html",
  "variants": [],
  "versions": [
    {
      "behaviour": "2,067 captured inputs are indexed for this environment. Capture dates: 2026-09-29 to 2026-09-29. This is a reading count, not a comparison with another build.",
      "excel_build": "16.0 build 20430",
      "platform": "Windows, 64-bit, CPU not recorded",
      "sources": [
        "https://github.com/DnaCalc/ExcelFunctionsHandbook/blob/5dc75391aa5125ccc5abdb095da85950980d6fd8/content/evidence/environments/FUNC.IMDIV.json"
      ]
    }
  ]
}