{
  "category": "Engineering functions",
  "display_name": "IMREAL",
  "entry_kind": "built_in_function",
  "eval_api": {
    "method": "POST",
    "url": "https://handbook.dnacalc.com/api/eval"
  },
  "function_id": "FUNC.IMREAL",
  "implementation_state": {
    "answer_bank": {
      "excel_builds": [
        "20430"
      ],
      "larger_numeric": 0,
      "last_bit": 0,
      "matched": 1209,
      "other_mismatch": 0,
      "refused": 0,
      "rows": 1209,
      "unread": 0,
      "worst_ulp": 0
    },
    "detail": "Recorded: 1,209 in the answer bank and 3 workbook cells.",
    "dnacalc_commit": "9e1884369a678158dd82d3d74188daf986995e87",
    "in_catalogue": true,
    "state": "matches",
    "state_label": "Matches every recorded Excel answer",
    "summary": "Matches all 1,212 recorded answers",
    "workbook_corpus": {
      "cells": 3,
      "matched": 3
    }
  },
  "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#L190-L190"
      ],
      "repository": "https://github.com/DnaCalc/DnaCalc",
      "shared_code": [
        "catalogue/engineering::complex_of",
        "catalogue/engineering::complex_number",
        "ported/complex_family::parse_ascii_decimal_15",
        "ported/complex_family::ParsedComplex::new",
        "ported/complex_family::normalize_zero",
        "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"
      ],
      "source": "https://github.com/DnaCalc/DnaCalc/blob/9e1884369a678158dd82d3d74188daf986995e87/crates/calc-func/src/catalogue/engineering.rs#L190-L190",
      "state": "matches",
      "suite": null,
      "summary": "Matches all 1,212 recorded answers"
    }
  ],
  "json_url": "https://handbook.dnacalc.com/api/functions/FUNC.IMREAL.json",
  "name": "IMREAL",
  "notes": [],
  "schema": "efh.function-reference/v1",
  "section_order": [
    "what-it-does",
    "try-it",
    "quirks",
    "how-to-implement",
    "version-differences",
    "alternatives"
  ],
  "sections": {
    "alternatives": "\n[IMAGINARY](FUNC.IMAGINARY.md) extracts the other coefficient. [COMPLEX](FUNC.COMPLEX.md) assembles coefficients into text, [IMABS](FUNC.IMABS.md) gives magnitude, and [IMARGUMENT](FUNC.IMARGUMENT.md) gives direction.\n\n\n",
    "how-to-implement": "\nAdmit a numeric input as `(value,0)`. For text, parse the optional real component and optional imaginary component. A plus or minus in an exponent, such as the sign in `2e-3`, does not divide the two components. An omitted coefficient before `i` or `j` means one, and a leading minus means minus one.\n\nReturn the parsed real component directly as a number; do not round it through the complex output formatter. Thus `-j` parses as `(0,-1)` and returns zero, while `2-3i` parses as `(2,-3)` and returns two. The current decimal-text parser truncates after fifteen significant digits before converting to nearest binary64; a native language complex parser may use a different grammar or more digits.\n\n\n",
    "quirks": "\nThe output is a worksheet number, even when the input is text. A missing real component means zero, not an error. Lowercase `i` and `j` identify the imaginary suffix; an uppercase or malformed spelling is rejected by the current parser. Logical values give `#VALUE!` in the wrapper. Text parsing keeps fifteen leading significant decimal digits, so extracting a long decimal coefficient need not preserve every typed digit.\n\n\n",
    "sources": "\n- [Microsoft: IMREAL function](https://support.microsoft.com/en-us/office/imreal-function-d12bc4c0-25d0-4bb3-a25f-ece1938bf366), 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`=IMREAL(\"2-3i\")` returns `2`; `=IMREAL(\"-j\")` returns `0`. A numeric argument such as `=IMREAL(-7)` returns that real number. The extracted value can feed ordinary arithmetic without complex-text formatting.\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 | 1,209 |\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.IMREAL.json).",
    "what-it-does": "\n`IMREAL(inumber)` returns the real coefficient of a complex number `a+bi`. Unlike functions that return complex text, this function returns a real worksheet number.\n\n\n"
  },
  "signature": {
    "display": "IMREAL(inumber)",
    "parameters": [
      {
        "description": null,
        "name": "inumber",
        "optional": false,
        "repeats": false
      }
    ],
    "trailing_repeats": false
  },
  "sources": {
    "metadata": {
      "admission": {
        "label": "implemented",
        "reason": null
      },
      "arity": {
        "max": 1,
        "min": 1
      },
      "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": "Real part of a complex number",
        "short_source": "dna-calc-own"
      },
      "docs": {
        "english_description": "Returns the real coefficient of a complex number",
        "microsoft_url": "https://support.microsoft.com/en-us/office/imreal-function-d12bc4c0-25d0-4bb3-a25f-ece1938bf366"
      },
      "entry_kind": "built_in_function",
      "localized_family_names": null,
      "localized_names": [
        {
          "locale": "ar-SA",
          "name": "IMREAL"
        },
        {
          "locale": "bg-BG",
          "name": "IMREAL"
        },
        {
          "locale": "cs-CZ",
          "name": "IMREAL"
        },
        {
          "locale": "da-DK",
          "name": "IMAGREELT"
        },
        {
          "locale": "de-DE",
          "name": "IMREAL"
        },
        {
          "locale": "el-GR",
          "name": "IMREAL"
        },
        {
          "locale": "en-AU",
          "name": "IMREAL"
        },
        {
          "locale": "en-GB",
          "name": "IMREAL"
        },
        {
          "locale": "en-US",
          "name": "IMREAL"
        },
        {
          "locale": "es-ES",
          "name": "IM.REAL"
        },
        {
          "locale": "et-EE",
          "name": "IMREAL"
        },
        {
          "locale": "fi-FI",
          "name": "KOMPLEKSI.REAALI"
        },
        {
          "locale": "fr-FR",
          "name": "COMPLEXE.REEL*"
        },
        {
          "locale": "he-IL",
          "name": "IMREAL"
        },
        {
          "locale": "hr-HR",
          "name": "IMREAL"
        },
        {
          "locale": "hu-HU",
          "name": "KÉPZ.VALÓS"
        },
        {
          "locale": "id-ID",
          "name": "IMREAL"
        },
        {
          "locale": "it-IT",
          "name": "IMREAL"
        },
        {
          "locale": "ja-JP",
          "name": "IMREAL"
        },
        {
          "locale": "ko-KR",
          "name": "IMREAL"
        },
        {
          "locale": "lt-LT",
          "name": "IMREAL"
        },
        {
          "locale": "lv-LV",
          "name": "IMREAL"
        },
        {
          "locale": "nb-NO",
          "name": "IMREAL"
        },
        {
          "locale": "nl-NL",
          "name": "C.REEEL.DEEL"
        },
        {
          "locale": "pl-PL",
          "name": "CZ.RZECZ.LICZBY.ZESP"
        },
        {
          "locale": "pt-BR",
          "name": "IMREAL"
        },
        {
          "locale": "pt-PT",
          "name": "IMREAL"
        },
        {
          "locale": "ro-RO",
          "name": "IMREAL"
        },
        {
          "locale": "ru-RU",
          "name": "МНИМ.ВЕЩ"
        },
        {
          "locale": "sk-SK",
          "name": "IMREAL"
        },
        {
          "locale": "sl-SI",
          "name": "IMREAL"
        },
        {
          "locale": "sr-Latn-RS",
          "name": "IMREAL"
        },
        {
          "locale": "sv-SE",
          "name": "IMREAL"
        },
        {
          "locale": "th-TH",
          "name": "IMREAL"
        },
        {
          "locale": "tr-TR",
          "name": "SANGERÇEK işlevi"
        },
        {
          "locale": "uk-UA",
          "name": "IMREAL"
        },
        {
          "locale": "vi-VN",
          "name": "IMREAL"
        },
        {
          "locale": "zh-CN",
          "name": "IMREAL"
        },
        {
          "locale": "zh-HK",
          "name": "IMREAL"
        },
        {
          "locale": "zh-TW",
          "name": "IMREAL"
        }
      ],
      "signature": {
        "display": "IMREAL(inumber)",
        "parameters": [
          {
            "description": null,
            "name": "inumber",
            "optional": false,
            "repeats": false
          }
        ],
        "trailing_repeats": false
      },
      "surface_name": "IMREAL",
      "version_marker": null,
      "xlcall": {
        "code": "410",
        "symbol": "xlfImreal"
      }
    },
    "microsoft": "https://support.microsoft.com/en-us/office/imreal-function-d12bc4c0-25d0-4bb3-a25f-ece1938bf366"
  },
  "try_it": {
    "formula": "=IMREAL(\"2-3i\")"
  },
  "url": "https://handbook.dnacalc.com/functions/IMREAL.html",
  "variants": [],
  "versions": [
    {
      "behaviour": "1,209 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.IMREAL.json"
      ]
    }
  ]
}