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 respresented 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/dd |
An integer specifying a numeral system |
Return value:
A numerics 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 |