convert/decimal
convert to base 10
Calling Sequence
Parameters
Description
Examples
convert(n, decimal, b)
n
-
integer, floating-point number, symbol, or string
b
integer from 2 to 36 or one of binary, octal, hexadecimal, or hex
The function convert(n, decimal, b) converts a base b number where b is an integer from 2 through 36) to a decimal number. If n is a symbol or a string, it is assumed to be in the form of a either an integer or a floating-point number. The letters a (or A) through z (or Z) represent the digit values 10 through 35, respectively. The digits used are not required to be less than the base, so 38B base 4 is equivalent to 1123 base 4, each being converted to the decimal value 91.
The keywords binary, octal, hexadecimal, and hex represent bases 2, 8, 16, and 16, respectively.
convert⁡101,decimal,binary
5
convert⁡−23,decimal,octal
−19
convert⁡1A.C,decimal,hex
26.75000000
convert⁡F39GA.CLH,decimal,24
5.023690538×106
convert⁡HELLO.WORLD,decimal,36
2.923465291×107
See Also
convert/base
convert/binary
convert/hex
convert/octal
Download Help Document