Base is specified with theradixargument.

The BASE function takes threearguments:number,radix, andmin_length.Numbershould be an integer between 1 and 2^53.

Ifnumberis negative, BASE returns a #NUM!

Excel DEC2BIN function

The optionalmin_lengthargument is the minimum string length that BASE should return.

Whenmin_lengthis provided, BASE will pad the output with zeros as needed to achieve the length specified.

Examples

Theradixargument specifies base and the output from the BASE function is atext string.

Excel DEC2OCT function

For example, the DECIMAL function can convert the binary number 1101 into the decimal number 13.

Excel DEC2HEX function

Excel DECIMAL function