Engineering functions

BIN2DEC

Matches all 316 recorded answers

Recorded: 313 in the answer bank and 3 workbook cells. How we measure this · See the Rust code

Local names in 40 languages
LanguageName in Excel
ArabicBIN2DEC
BulgarianBIN2DEC
CzechBIN2DEC
DanishBIN.TIL.DEC
GermanBIN2DEC
GreekBIN2DEC
English (Australia)BIN2DEC
English (United Kingdom)BIN2DEC
English (United States)BIN2DEC
SpanishBIN.A.DEC
EstonianBIN2DEC
FinnishBINDES
FrenchBINDEC
HebrewBIN2DEC
CroatianBIN2DEC
HungarianBIN.DEC
IndonesianBIN2DEC
ItalianBIN2DEC
JapaneseBIN2DEC
KoreanBIN2DEC
LithuanianBIN2DEC
LatvianBIN2DEC
NorwegianBIN2DEC
DutchBIN2DEC
PolishDWÓJK.NA.DZIES
Portuguese (Brazil)BIN2DEC
Portuguese (Portugal)BINADEC
RomanianBIN2DEC
RussianДВ.В.ДЕС
SlovakBIN2DEC
SlovenianBIN2DEC
Serbian (Latin)BIN2DEC
SwedishBIN.TILL.DEC
ThaiBIN2DEC
TurkishBIN2DEC işlevi
UkrainianBIN2DEC
VietnameseBIN2DEC
Chinese (Simplified)BIN2DEC
Chinese (Hong Kong)BIN2DEC
Chinese (Traditional)BIN2DEC

Names from Microsoft's support site.

What it does

BIN2DEC(number)

BIN2DEC(number) converts binary to decimal. The result is a numeric worksheet value.

Try it

Input cells (optional)

Example: {"B2": 3, "B3": 4}. A1 holds the formula. Other cells need values before a formula can read them.

Enter a formula, then calculate.

Runs locally in your browser with OneCalc. Its answer may differ from Excel. Use English function names and commas between arguments.

=BIN2DEC("101101") returns 45. All of these represent the same integer: decimal 45, binary 101101, octal 55, and hexadecimal 2D.

For a negative value, =BIN2DEC("1111010011") returns -45. Accumulation gives 979; the full-width sign bit is set, so subtract 1024 to get -45. The shorter source "111101001" is positive 489.

Quirks

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 10-bit two’s complement. 1111111111 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.

How to implement

Separate input parsing, signed interpretation and output formatting. Uppercase the source, validate its digit set and length, and accumulate raw=raw*2+digit with checked integer arithmetic. Only a full ten-digit source with its top bit set is negative: subtract 2^10 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.

Rust code

Show the CalcFunc source of this function

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.

BIN2DEC · 1 lines · calc-func/src/catalogue/engineering.rs on GitHub
1 bin2dec "BIN2DEC" (1, 1) [V "number"] |s, a, sv| { to_decimal(s, a, radix::bin2dec_kernel) }
bin2dec_kernel · 3 lines · calc-func/src/ported/engineering_radix_family.rs on GitHub
pub fn bin2dec_kernel(number: &str) -> Result<f64, WorksheetErrorCode> {
    source_to_decimal_kernel(number, BIN_SPEC)
}

Kernels shared with other functions

Argument and result plumbing

No implementation has been published with a Handbook test suite for this function.

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.

Excel 16.0 buildPlatform and CPUCaptured inputs
20430Windows, 64-bit, CPU not recorded313

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.

Excel 16.0 build 20430

Windows, 64-bit, CPU not recorded

313 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.

Alternatives

DEC2BIN 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.

Named variants

No named variants are recorded yet.

Suggest a correction or contribute an implementation · For agents