Returns a decimal number, given a text representation and its base radix.
DECIMAL(text, radix)
text is text representing a number with the base radix radix (an integer between 2 and 36).
Any leading spaces and tabs are ignored.
Letters, if any, may be upper or lower case.
If radix is 16 (hexadecimal system), any leading 0x, 0X, x or X is ignored, as is any trailing h or H.
If radix is 2 (binary system), any trailing b or B is ignored.
DECIMAL("00FF", 16)
returns 255 as a number (hexadecimal system).
DECIMAL("101b", 2)
returns 5 as a number (binary system).
Let's imagine a system that processes data from old-school hardware, which sometimes outputs numbers in different bases. One specific piece of equipment, a vintage scientific calculator, records its results as a text string with an accompanying base. To use these results in modern financial calculations, we need to convert them into a standard decimal format.
Here is a simplified example of the data we might receive:
Text Representation | Base Radix | ||
|---|---|---|---|
A | B | ||
1 | 10110 | 2 | |
2 | A2F | 16 | |
3 | 177 | 8 |
The DECIMAL function would be used to convert each of these entries into a standard base-10 decimal number.
The final output, after applying the DECIMAL function to each entry, would be a new column containing the base-10 decimal values:
Text Representation | Base Radix | Decimal Value | ||
|---|---|---|---|---|
A | B | C | ||
1 | 10110 | 2 | 22 | |
2 | A2F | 16 | 2607 | |
3 | 177 | 8 | 127 |
PRODUCT & FEATURES
RESOURCES
Terms | Privacy | Spam Policy
© 2026 Zapof