Description:
Convert a numeric string of certain numeral system to a specific numeral system.
Syntax:
digits(x:ds,dd)
Note:
The function converts string x represented by numeral system ds to numeral system dd; supports base 62 at most. When parameters ds or dd are absent, the default numeral system is decimal.
Parameter:
x |
Numeric string; use letters to represent a number greater than 10 |
ds |
An integer specifying a numeral system, which means x uses ds numeral system |
dd |
An integer specifying a numeral system, which means converting x into dd numeral system |
Return value:
A numeric string
Example:
|
A |
|
1 |
=digits("1515":10,16) |
5eb |
2 |
=digits("5eb":16,10) |
1515 |
3 |
=digits("12f":16) |
303; the default value of parameter dd is 10. |