Contact

BIN2DEC Function (Calligra Sheets)

Engineering Intermediate Calligra Sheets

Decode binary digits into decimal numbers in Calligra, with quoted text, leading-zero handling and unsigned-looking ten-bit examples.

Verification status: Selected formulas were executed through the Calligra Sheets 25.04.2 calculation engine library. No workbook-import or GUI-cell result is claimed; 26.08.2 was source-checked only. How formula examples are checked

Quick answer: =BIN2DEC("00001101") gives 13 in the tested Calligra calculation engine. Successful BIN2DEC results are numeric integers.

Availability and version history

  • Introduced: First release not established; the name is present in Calligra 2.4.0 source.
  • Supported in: Calligra Sheets 26.08.2, with no retirement established.
  • Scope: Desktop Sheets with the Engineering function module. Examples use English semicolon-separated formulas.
  • Checked: October 14, 2026. Formulas were executed through the official 25.04.2 engine library, with source and independent arithmetic checks. This is not GUI-cell or workbook-import evidence; 26.08.2 was source-checked, not executed.

What the result represents

BIN2DEC reads a sequence of binary digits and returns a numeric integer. Each digit contributes its value times a power of two. The input is a representation to interpret, so the numeric argument 1010 is treated as the digit string 1010 and gives decimal 10. Function help.

Syntax and arguments

=BIN2DEC(binary)

Exactly one argument is required. Quoted text is the clearest way to preserve the source representation, especially leading zeroes. The function delegates parsing to the shared base decoder; its error handling is different from the digit-only BIN2HEX wrapper. Registration, implementation and versioned help.

Reproducible engine examples

These outputs were obtained through Calligra 25.04.2’s Formula parser and calculation library. The ordinary conversions also match independent positional arithmetic. Backticks preserve literal leading zeroes; they are not part of the entered result.

Formula Engine result
=BIN2DEC("0") 0
=BIN2DEC("1") 1
=BIN2DEC("101") 5
=BIN2DEC("00001101") 13
=BIN2DEC("11111111") 255
=BIN2DEC("1000000000") 512
=BIN2DEC("1111111111") 1023
=BIN2DEC(1010) 10

Practical worksheet

Put the text 00001101 in A2, preserving it as text during entry or import. =BIN2DEC(A2) yields 13, because the nonzero terms are 8+4+1. The numeric result is suitable for ordinary arithmetic. It no longer records whether the input had four, eight or more display positions.

Advanced checks and field widths

The recorded =DEC2BIN(BIN2DEC("00001101");8) returns the text 00001101. The final width is essential if padding needs to be restored; the decoded integer alone cannot remember it.

The engine interpreted “1000000000” as 512 and “1111111111” as 1023. These examples treat the leading bit as magnitude, not a sign bit. A signed binary field needs an explicit external encoding definition; do not infer that convention from the number of input characters.

Input boundaries and error cases

The tested parser accepted a leading minus sign and surrounding spaces: “-101” became −5 and " 101 " became 5. Digit 2, an empty string and the fractional numeric input 10.5 produced #VALUE!. For portable data interchange, validate a chosen sign and whitespace policy before conversion rather than assuming every binary-related function accepts the same text.

The following engine results show the specific inputs tested. They do not establish every text-format, locale or import rule.

Formula Engine result
=BIN2DEC("102") #VALUE!
=BIN2DEC("-101") -5
=BIN2DEC(" 101 ") 5
=BIN2DEC(10.5) #VALUE!
=BIN2DEC("") #VALUE!

Range and verification limits

The shared decoder parses an integer using the specified base. A successful decode is not proof that a later encoder or another application can preserve every large value. Keep original digit strings for long identifiers, and distinguish their representation from arithmetic quantities.

The Engineering module and conversion helper are byte-identical in the inspected 25.04.2 and 26.08.2 source files. That supports the source comparison, but does not turn these engine tests into execution of a newer binary or confirmation of its UI/import behavior.