“How can I use the DECIMAL function in Google Sheets to convert a number from one base to another?”

“How can I use the DECIMAL function in Google Sheets to convert a number from one base to another?”

The DECIMAL function in Google Sheets allows users to easily convert a number from one base to another. By specifying the base of the original number and the desired base for the conversion, the DECIMAL function will accurately calculate and display the converted number. This feature is particularly useful for individuals working with different number systems or performing mathematical operations in various bases. By utilizing the DECIMAL function, users can quickly and accurately convert numbers to meet their specific needs.

DECIMAL function

The DECIMAL function converts the text representation of a number in another base, to base 10 (decimal).

Parts of a DECIMAL formula

DECIMAL(value, base)

PartDescriptionNotes
valueThe unsigned value to be converted to decimal, provided as a string. 
baseThe base (or radix) to convert the number into.The base is an integer from 2 to 36.

Sample formula

DECIMAL(101,2)

Notes

  • The string representation of the value is used, which should only contain numeric characters (i.e. scientific notation isn’t permitted). The text of a string should be no longer than 255 characters.
  • The DECIMAL function only converts to positive integers.

Example

 AB
1FormulaResult
2=DECIMAL(101,2)5

Related functions

  • BASE: The BASE function converts a decimal number into a text representation in another base.
  • BIN2DEC: The BIN2DEC function converts a signed binary number to decimal format.
  • BIN2HEX: The BIN2HEX function converts a signed binary number to signed hexadecimal format.
  • BIN2OCT: The BIN2OCT function converts a signed binary number to signed octal format.
  • OCT2BIN: The OCT2BIN function converts a signed octal number to signed binary format.
  • OCT2DEC: The OCT2DEC function converts a signed octal number to decimal format.
  • OCT2HEX: The OCT2HEX function converts a signed octal number to signed hexadecimal format.
  • DEC2BIN: The DEC2BIN function converts a decimal number to signed binary format.
  • DEC2OCT: The DEC2OCT function converts a decimal number to signed octal format.
  • DEC2HEX: The DEC2HEX function converts a decimal number to signed hexadecimal format.
  • HEX2DEC: The HEX2DEC function converts a signed hexadecimal number to decimal format.
  • HEX2BIN: The HEX2BIN function converts a signed hexadecimal number to signed binary format.
  • HEX2OCT: The HEX2OCT function converts a signed hexadecimal number to signed octal format.

Cite this article

stats writer (2024). “How can I use the DECIMAL function in Google Sheets to convert a number from one base to another?”. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-use-the-decimal-function-in-google-sheets-to-convert-a-number-from-one-base-to-another/

stats writer. "“How can I use the DECIMAL function in Google Sheets to convert a number from one base to another?”." PSYCHOLOGICAL SCALES, 30 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-use-the-decimal-function-in-google-sheets-to-convert-a-number-from-one-base-to-another/.

stats writer. "“How can I use the DECIMAL function in Google Sheets to convert a number from one base to another?”." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-use-the-decimal-function-in-google-sheets-to-convert-a-number-from-one-base-to-another/.

stats writer (2024) '“How can I use the DECIMAL function in Google Sheets to convert a number from one base to another?”', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-use-the-decimal-function-in-google-sheets-to-convert-a-number-from-one-base-to-another/.

[1] stats writer, "“How can I use the DECIMAL function in Google Sheets to convert a number from one base to another?”," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.

stats writer. “How can I use the DECIMAL function in Google Sheets to convert a number from one base to another?”. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.

Download Post (.PDF)
Slide Up
x
PDF
Scroll to Top