Excel 16.0 build 20430
Windows, 64-bit, CPU not recorded
4,807 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 4,811 recorded answers
Recorded: 4,807 in the answer bank and 4 workbook cells. How we measure this · See the Rust code
| Language | Name in Excel |
|---|---|
| Arabic | DEC2BIN |
| Bulgarian | DEC2BIN |
| Czech | DEC2BIN |
| Danish | DEC.TIL.BIN |
| German | DEC2BIN |
| Greek | DEC2BIN |
| English (Australia) | DEC2BIN |
| English (United Kingdom) | DEC2BIN |
| English (United States) | DEC2BIN |
| Spanish | DEC.A.BIN |
| Estonian | DEC2BIN |
| Finnish | DESBIN |
| French | DECBIN |
| Hebrew | DEC2BIN |
| Croatian | DEC2BIN |
| Hungarian | DEC.BIN |
| Indonesian | DEC2BIN |
| Italian | DEC2BIN |
| Japanese | DEC2BIN |
| Korean | DEC2BIN |
| Lithuanian | DEC2BIN |
| Latvian | DEC2BIN |
| Norwegian | DEC2BIN |
| Dutch | DEC.N.BIN |
| Polish | DZIES.NA.DWÓJK |
| Portuguese (Brazil) | DEC2BIN |
| Portuguese (Portugal) | DECABIN |
| Romanian | DEC2BIN |
| Russian | ДЕС.В.ДВ |
| Slovak | DEC2BIN |
| Slovenian | DEC2BIN |
| Serbian (Latin) | DEC2BIN |
| Swedish | DEC.TILL.BIN |
| Thai | DEC2BIN |
| Turkish | DEC2BIN işlevi |
| Ukrainian | DEC2BIN |
| Vietnamese | DEC2BIN |
| Chinese (Simplified) | DEC2BIN |
| Chinese (Hong Kong) | DEC2BIN |
| Chinese (Traditional) | DEC2BIN |
Names from Microsoft's support site.
DEC2BIN(number, [places])
DEC2BIN(number, [places]) converts decimal to binary. The result is text, with optional leading zeros controlled by places.
=DEC2BIN(45,8) returns "00101101". All of these represent the same integer: decimal 45, binary 101101, octal 55, and hexadecimal 2D.
For a negative value, =DEC2BIN(-45,4) returns "1111010011". Encode 1024-45=979 in binary. The sign representation occupies ten digits even though places is four.
These engineering conversions use signed fixed-width encodings, not arbitrary-length integers. The destination’s numeric range is -512 through 511. The decimal input is truncated toward zero. For a positive result a width too small gives #NUM!. A negative result uses ten digits; the current code still validates an explicitly supplied width before emitting it, despite documentation describing the width as ignored.
Separate input parsing, signed interpretation and output formatting. Coerce the decimal number and truncate it toward zero to obtain integer v. Check v against the 10-bit signed target range. If negative, encode 2^10+v in base 2 using ten digits. Otherwise use repeated division by 2, reverse the remainders and left-pad to the requested width. Truncate the width and validate it in the current supported range one through ten. Return text; a decimal number formatted to look similar is a different value kind.
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.
DEC2BIN · 1 lines · calc-func/src/catalogue/engineering.rs on GitHub4 dec2bin "DEC2BIN" (1, 2) [V "number", V "places"] |s, a, sv| { from_decimal(s, a, radix::dec2bin_kernel) }
dec2bin_kernel · 3 lines · calc-func/src/ported/engineering_radix_family.rs on GitHubpub fn dec2bin_kernel(number: f64, places: Option<f64>) -> Result<ExcelText, WorksheetErrorCode> {
dec_to_target_kernel(number, places, BIN_SPEC)
}
radix_kind catalogue/engineeringplaces catalogue/engineeringfrom_decimal catalogue/engineeringint_to_base ported/base_fnbase_kernel ported/base_fnnormalize_places ported/engineering_radix_familymin_signed_value ported/engineering_radix_familymax_signed_value ported/engineering_radix_familyencode_signed_value ported/engineering_radix_familytrunc_i64 ported/engineering_radix_familydec_to_target_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 | 4,807 |
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
4,807 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.
BIN2DEC 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