Contact

BASETONUM in Apple Numbers: Convert Base-2 to Base-36 Values to Decimal

Engineering Intermediate Apple Numbers

Learn Apple Numbers BASETONUM syntax for converting a base-2 to base-36 input into a decimal number, with table examples, digit validation and negative-value pitfalls.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Verification (13 October 2026): Official Apple documentation and independent exact-integer arithmetic were reviewed. No native Numbers application execution or export/screenshot test was performed.

Availability and version history

  • Introduced: Documented in Apple’s Formulas and Functions Help 15.4; the original introduction release is not established.
  • Availability: Currently documented for Numbers in that help version; it is not a final supported-version endpoint.
  • Scope: Shared iWork function help. Availability in individual clients and older releases is not established by this check.
  • Checked: October 14, 2026, against the official BASETONUM reference. Documentation check; not a new native test.

Quick answer: what BASETONUM does

Interpret a string as digits of the chosen source base, then return its base-10 numeric value. Unlike output-only formatting, the result is an arithmetic-ready number according to Apple.

One-line example: =BASETONUM("3F",16) → 63 (Apple-documented or independently checked expected display). Official Apple BASETONUM function reference (checked 2026-10-13).

Exact Apple Numbers syntax and argument order

=BASETONUM(convert-string, base)

convert-string — required, string value: Must contain only characters valid in the source base. Digit 9 cannot occur in base 8; letters such as F are valid in base 16. For any literal containing letters, Apple states that quotation marks are required. Apple BASETONUM definition.

base — required, numeric value: The input base, not the desired output base. Apple’s documented range is 1–36. The expected ordinary positional examples here deliberately use bases 2–36; Apple’s article lists base 1 but does not give enough detail to demonstrate any unary notation, so base 1 is marked native-test-pending. Apple BASETONUM definition.

Return type: Apple says the result is a number, suitable for arithmetic. Another spreadsheet program might return different data types; do not infer its behavior from the Apple formula name.

Formula punctuation and locale: These examples follow Apple’s English function reference, with commas separating arguments. In localized Numbers editions, translated function identifiers and semicolons may apply. For example, Apple’s Portuguese-Brazil article calls BIN2OCT BINPARAOCT and shows semicolons; this is a locale display. Use the function browser in the target Numbers locale rather than mechanically swapping separators. Apple’s localized BIN2OCT help; Apple argument types (checked 2026-10-13).

Step-by-step worksheet: copy the inputs and formulas

  1. Create a new spreadsheet in Numbers and add a table called Conversions. This guide assumes no special add-ons, scripts or API access.
  2. Type the headers shown below into row 1. Set imported code columns to Text before entering strings such as 00101, F, or 3F; otherwise a conversion may silently change the source representation.
  3. Enter source examples and formulas in the indicated rows. Each formula references cells in the same table; direct formulas use ordinary A2, B2, C2 syntax. Other tables or sheets need table-qualified references described in Apple’s official cell-reference guide.
  4. Read the last column as the expected output, not a native-test report. For padded output keep an output column that preserves the displayed leading zeroes; evaluate actual formatting in Numbers before exporting a production file.
A: source text B: source base C: formula Expected number Evidence
3F 16 =BASETONUM(A2,B2) 63 Apple-published example
1000100 2 =BASETONUM(A3,B3) 68 Apple-published example
175 8 =BASETONUM(A4,B4) 125 Independent positional arithmetic
Z 36 =BASETONUM(A5,B5) 35 Independent arithmetic: Z represents digit 35
1Z 36 =BASETONUM(A6,B6) 71 Independent arithmetic: 1Ă—36+35
AB 16 =BASETONUM(A7,B7) 171 Independent arithmetic: AĂ—16+B

Testing distinction: A mathematical base conversion explains the expected numerical value; it does not prove that a particular Apple Numbers locale treats every source cell as text, preserves padding in an export or accepts values beyond documented limits. Apple’s argument types (checked 2026-10-13).

Formula examples explained, including the arithmetic

Example 1. =BASETONUM("3F",16) → 63. Hexadecimal 3F = (3 × 16) + 15.

Example 2. =BASETONUM("1000100",2) → 68. Binary bits 64 and 4 are set.

Example 3. =BASETONUM("1Z",36) → 71. Base-36 1Z = 36 + 35; this is a mathematical check, not an Apple execution.

Advanced uses and independent cross-checks

Normalize imported identifiers before numerical comparisons

Suppose one supplier sends hexadecimal 3F and another stores decimal 63. Put 3F as text in A2, the base 16 in B2, and =BASETONUM(A2,B2) in C2. Because Apple specifies a numeric result, comparisons and addition can operate on the returned value, subject to normal spreadsheet numeric precision. Never treat a genuine identifier with meaningful leading zeros as an ordinary integer unless the identifier rules permit losing those zeros.

Decode a mixed-base lookup table

Create columns RawCode, SourceBase, and DecimalValue; use =BASETONUM(A2,B2) per row. Binary 11001, octal 31, and hexadecimal 19 all denote decimal 25. Recording the base in a separate column prevents a common error: interpreting the literal 31 as decimal 31 rather than octal 31.

Represent negatives outside the input string

Apple explicitly shows =BASETONUM(-1000100,2) as an error because the minus sign is invalid, but =-BASETONUM(1000100,2) returning -68. The unary minus is an arithmetic operation applied to the decimal result, not part of the base-specific source text.

Check a positional representation independently

For AB base 16, A=10 and B=11. Compute 10Ă—16+11=171; for 175 base 8, compute 1Ă—64 + 7Ă—8 + 5 = 125. Such checks protect against mistakes when proofreading guide examples and do not prove Numbers’ input coercion or overflow behavior.

Edge cases, errors and troubleshooting

Input or symptom Why it fails or surprises Corrective action
=BASETONUM(7279,8) Apple explicitly rejects digit 9 in base 8. Correct the original base-8 string; never change base merely to avoid an error.
=BASETONUM("3F",10) F is not valid in base 10. Specify the true source base, 16.
=BASETONUM(-1000100,2) Leading minus is invalid inside source digits. Use =-BASETONUM("1000100",2) when the desired meaning is negative 68.
=BASETONUM("1Z",37) 37 is outside Apple’s documented range. Select a valid source base no greater than 36.
A base-36 value behaves like text Using external app expectations in Apple Numbers. Apple says the BASETONUM result is a number; confirm column formatting separately.

Error-code limitation: Apple’s function article documents some inputs as “returns an error” without prescribing a stable literal error label. The table above intentionally says error rather than inventing a specific #VALUE!, #NUM! or implementation-specific diagnostic. If your locale reports something different, inspect Apple’s formula-error guidance and verify the source data type (checked 2026-10-13).

Negative numbers, bounds and implementation limitations

Apple’s base parameter explicitly includes 1 in its stated 1–36 range. Its page does not demonstrate digit syntax, special cases or round trips for base 1; accordingly this guide does not claim unary conversion semantics or a tested formula. At higher bases or very large integers, review precision and display separately, because the help page provides no per-base maximum magnitude. Application-specific behavior for case-folding, empty source strings, decimals, Boolean values, and extremely long strings remains unverified.

Copying formulas across sheets

If the original sample cells are stored in Table 2 instead of the same table, a reference can be written using Apple’s documented form Table 2::A2. To refer to a different sheet, a qualified example is Sheet 2::Table 2::A2. Do not assume Excel-style Sheet!A2 notation works in Numbers; use the application’s reference picker and the Apple reference instructions.

BASETONUM starts with an encoded source string plus its input base and produces decimal. NUMTOBASE starts from a decimal value, a target base and an optional width. Dedicated BIN2DEC, HEX2DEC and OCT2DEC each fix the source base. Therefore =BASETONUM("3F",16) is equivalent in ordinary arithmetic to hexadecimal 3F = decimal 63, but the input syntax and validation rules should not be asserted identical to each specialized function without native testing. BASETONUM; NUMTOBASE.

Application, release and platform compatibility: what is established

This function is present in the current official Apple Formulas and Functions Help, documentation edition 15.4, in the Engineering category. The general help is used with Numbers and related Apple productivity applications. Documentation edition 15.4 is not evidence that the function was introduced in Numbers app version 15.4, nor proof it behaves identically in all older macOS/iOS/iPadOS/iCloud releases. Official help; Numbers for Mac release notes (reviewed 2026-10-13).

Apple’s documented English syntax and example results are the evidence for these claims. This guide does not establish parity with Microsoft Excel, Google Sheets, LibreOffice, or browser-based spreadsheet tools: those products have independent error codes, limits, coercion rules, localization and negative-number encodings. Their behavior is not used as Apple Numbers evidence.

Precision and display policy

Base conversion is exact arithmetic only while the input can be represented and parsed accurately. The official individual function documentation does not specify a universal maximum exact integer magnitude, rounding or overflow policy for all possible inputs, so this guide deliberately avoids such thresholds. Treat long codes or signed values as data requiring native app checks. A width parameter adds zeros for presentation; it does not increase information in the underlying number.

Quick questions

Does this formula need an extension, macro or paid service? No. It is documented by Apple as a built-in spreadsheet function. No external API is required for the examples here.

Can I use a cell reference instead of typing an argument? Yes; the reproducible worksheet uses A2 and, where relevant, B2/C2. Refer to Apple’s Numbers-specific table scope syntax when using another table or sheet.

Are the displayed results verified in the Apple Numbers app? No. Apple-published examples were documentation-checked, and positive-number examples were independently computed. Native execution and formatting/export screenshots were not performed.

Official sources, checked 2026-10-13 (UTC)

  • Apple official reference — Required arguments, base 1–36, numeric return, valid digits and letter quoting, Apple examples and explicit errors.
  • Apple official reference — Inverse direction and optional width for comparison.
  • Apple official reference — Data typing for string/number argument values.
  • Apple official reference — References between tables and sheets.
  • Apple formula-error troubleshooting — diagnosing invalid formulas and references.
  • Numbers for Mac release documentation — release context only; not a function-specific introduction date. Method: Manual comparison of Apple’s official help with independent Python exact-integer base arithmetic for positive examples, on 2026-10-13 UTC. Zero native Numbers execution. Unresolved native-behavior questions are identified explicitly in this guide.