1. Home
  2. Functions
  3. Math
  4. DECIMAL

DECIMAL function

Converts text that represents a number in another base to a decimal number.

Syntax

=DECIMAL(text, radix)

Arguments

ArgumentRequiredDescription
textRequiredThe digits, like "FF"
radixRequiredThe base of the text, from 2 to 36

How to use DECIMAL

DECIMAL takes 2 required arguments. Type =DECIMAL( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=DECIMAL("FF", 16)Result 255
=DECIMAL(111, 2)Result 7
=DECIMAL("zap", 36)Result 45745

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.