DECIMAL

converts text in given base to number · from excel · excel: not yet compared · sheets: not yet compared

signature

DECIMAL(text, radix)

returns: number

argumentrequired
text required
radix required

examples

formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.

fx =DECIMAL("FF", 16) 255

errors

error values observed from the engine — each with a call that produces it.

errorproduced by
#VALUE! =DECIMAL("alpha", 2)

related

  • ABS returns absolute value of a number
  • ACOS returns arccosine of a number
  • ACOSH returns inverse hyperbolic cosine
  • ACOT returns the arccotangent of a number
  • ACOTH returns the inverse hyperbolic cotangent
  • ADD adds two numbers — sheets exposes the + operator as a function