Excel 16.0 build 20430
Windows, 64-bit, CPU not recorded
998 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.
Engineering functions
Matches all 1,001 recorded answers
Recorded: 998 in the answer bank and 3 workbook cells. How we measure this · See the Rust code
| Language | Name in Excel |
|---|---|
| Arabic | OCT2DEC |
| Bulgarian | OCT2DEC |
| Czech | OCT2DEC |
| Danish | OKT.TIL.DEC |
| German | OCT2DEC |
| Greek | OCT2DEC |
| English (Australia) | OCT2DEC |
| English (United Kingdom) | OCT2DEC |
| English (United States) | OCT2DEC |
| Spanish | OCT.A.DEC |
| Estonian | OCT2DEC |
| Finnish | OKTDES |
| French | OCTDEC |
| Hebrew | OCT2DEC |
| Croatian | OCT2DEC |
| Hungarian | OKT.DEC |
| Indonesian | OCT2DEC |
| Italian | OCT2DEC |
| Japanese | OCT2DEC |
| Korean | OCT2DEC |
| Lithuanian | OCT2DEC |
| Latvian | OCT2DEC |
| Norwegian | OCT2DEC |
| Dutch | OCT2DEC |
| Polish | ÓSM.NA.DZIES |
| Portuguese (Brazil) | OCT2DEC |
| Portuguese (Portugal) | OCTADEC |
| Romanian | OCT2DEC |
| Russian | ВОСЬМ.В.ДЕС |
| Slovak | OCT2DEC |
| Slovenian | OCT2DEC |
| Serbian (Latin) | OCT2DEC |
| Swedish | OKT.TILL.DEC |
| Thai | OCT2DEC |
| Turkish | OCT2DEC işlevi |
| Ukrainian | OCT2DEC |
| Vietnamese | OCT2DEC |
| Chinese (Simplified) | OCT2DEC |
| Chinese (Hong Kong) | OCT2DEC |
| Chinese (Traditional) | OCT2DEC |
Names from Microsoft's support site.
OCT2DEC(number)
OCT2DEC(number) converts octal to decimal. The result is a numeric worksheet value.
=OCT2DEC("55") returns 45. All of these represent the same integer: decimal 45, binary 101101, octal 55, and hexadecimal 2D.
For a negative value, =OCT2DEC("7777777723") returns -45. Accumulation gives 1073741779; the full-width sign bit is set, so subtract 2^30 to get -45. A shorter octal source cannot set that 30-bit sign bit.
These engineering conversions use signed fixed-width encodings, not arbitrary-length integers. The source accepts at most ten digits; a full ten-digit encoding uses 30-bit two’s complement. 7777777777 represents minus one. Invalid source digits or an oversized input give #NUM!. Quote source digits to keep leading zeros and prevent worksheet number parsing from changing the input.
Separate input parsing, signed interpretation and output formatting. Uppercase the source, validate its digit set and length, and accumulate raw=raw*8+digit with checked integer arithmetic. Only a full ten-digit source with its top bit set is negative: subtract 2^30 to obtain signed integer v. Return v as a number. The 45 example is an exact integer at every step. Do not infer sign merely from the first source character of a short encoding.
Quoted from the public repository DnaCalc/DnaCalc, crates calc-func and calc-fml, at commit 9e1884369a67. Comments are the source's own. A kernel shared with other functions appears once, on its module page.
OCT2DEC · 1 lines · calc-func/src/catalogue/engineering.rs on GitHub11 oct2dec "OCT2DEC" (1, 1) [V "number"] |s, a, sv| { to_decimal(s, a, radix::oct2dec_kernel) }
oct2dec_kernel · 3 lines · calc-func/src/ported/engineering_radix_family.rs on GitHubpub fn oct2dec_kernel(number: &str) -> Result<f64, WorksheetErrorCode> {
source_to_decimal_kernel(number, OCT_SPEC)
}
radix_kind catalogue/engineeringto_decimal catalogue/engineeringupper_ascii_digit_value ported/engineering_radix_familynormalize_radix_text ported/engineering_radix_familyparse_radix_text ported/engineering_radix_familysource_to_decimal_kernel ported/engineering_radix_familyNo implementation has been published with a Handbook test suite for this function.
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.
| Excel 16.0 build | Platform and CPU | Captured inputs |
|---|---|---|
| 20430 | Windows, 64-bit, CPU not recorded | 998 |
The 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.
Recorded environments and comparison details.
Windows, 64-bit, CPU not recorded
998 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.
DEC2OCT converts in the reverse direction. BASE and DECIMAL provide general radix conversion with different sign rules. A full-width negative engineering encoding is not a minus-prefixed numeral; choose the pair whose sign convention fits your input.
No named variants are recorded yet.
Suggest a correction or contribute an implementation · For agents