Convert text representing number in base N to decimal number
converts D
= base2dec(baseStr
,n
)baseStr
to a decimal number and returns it. The input argument
baseStr
represents digits of a base-n
number using
numeric characters and, when n
is greater than 10, letters. For example,
if n
is 12, then baseStr
represents the numbers 9, 10,
and 11 using the characters '9'
, 'A'
, and
'B'
, and represents the number 12 as the character sequence
'10'
. Letters can be either uppercase or lowercase.
If the input argument baseStr
represents a value greater than the
value returned by flintmax
, then base2dec
might
not return an exact conversion.