Convert a Binary Example with DECIMAL in Google Sheets
The digits 101 mean something different when their base is 2. Try one published Google Sheets example: =DECIMAL(101,2) gives 5 in base 10.
Start with one empty practice cell
Use your own permitted spreadsheet in Google Sheets on a computer. Confirm the account, file, sheet tab and editing permission. Choose a known empty cell, G1, for this exercise.
If G1 already contains work, stop. Do not clear or overwrite it to make room. If you cannot confirm the file or permission, ask the owner before typing.
The formula contains the example value and base. You do not need a separate source range or any real marks or student records.
Enter the published example
- Open the intended spreadsheet and sheet tab.
- Click the known empty G1.
- Type
=DECIMAL(101,2)exactly, including the equals sign, comma and parentheses. - Press Enter when done.
- Read the cell. Google gives 5 as the result of this exact example.
Here, 101 is the value to convert, and 2 specifies its input base. The result is in base 10. This is not the same task as rounding a number or changing a cell's displayed decimal places.
If you see an error, different result or unexpected prompt, stop and compare the formula with the source. Do not type 5 over it to make the cell look correct.
Keep the example and the input rules separate
Google describes the value argument as an unsigned value provided as a string. Its own example shows =DECIMAL(101,2) without quotation marks. This exercise keeps that exact example rather than changing it or inferring how other input forms behave.
Google documents bases from 2 to 36, a maximum text length of 255 characters, no scientific notation in the string representation, and conversion only to positive integers. This page does not demonstrate those other cases.
A matching result checks this one practice example. It does not verify an assignment, decide a grade or submit anything. Follow the teacher's instructions separately.
Common questions
What does DECIMAL do in Google Sheets?
DECIMAL converts the text representation of a number in another base to base 10. It is a base-conversion function, not a command for changing how many decimal places a cell displays.
What result does the published example give?
Google publishes =DECIMAL(101,2) with the result 5. The second argument, 2, identifies the input base in this example.
Should I add quotation marks to this example?
This exercise preserves the published formula exactly as =DECIMAL(101,2). It does not add quotation marks or use this example to make a general claim about other input forms.
Which bases does Google document?
Google documents the base argument as an integer from 2 to 36 and says DECIMAL only converts to positive integers. This walkthrough tries only its published base-2 example.
Sources
Checked . Google publishes the formula and result. The permission, empty-cell and stop rules are precautions for this exercise, not a claim of a hands-on Sheets session.
- Google Sheets Help: DECIMAL, argument definitions, limits and the example result.
- Google Sheets Help: add formulas and functions, equals sign and function entry.
- Google Sheets Help: edit a spreadsheet, entering data in an empty cell and pressing Enter.