MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

FromDigits[{135,21}] -> 1371 (??!!)


Can anyone please explain what happens,
if "Digits" actually are "integers":
FromDigits[{3,2}]
32(!)
FromDigits[{13,2}]
132 (!!)
FromDigits[{135,2}],
1352 (!!!)
FromDigits[{1355078,9}]
13550789 (!!!!!!!)
it's OK above, 
but:
FromDigits[{135,21}]
1371 (??!!)
FromDigits[{13,23}]
153 (??!!)
FromDigits[{3,23}]
53 (??!!)

And how to get integer 1323 from  list {13,23}?

So, or there is a better way:
li={135,42};FromDigits[Flatten[{IntegerDigits[li[[1]]],IntegerDigits[li[[2]]]}]]->
13542

Many thanks,
and if you please send copy to 
seidovzf at yahoo.com
Zak

PS I use M4.
M5 also gives
FromDigits[{135,21}]
1371 (??!!)


  • Prev by Date: Re: Multiple Sums in Mathematica
  • Next by Date: Re: Multiple Sums in Mathematica
  • Previous by thread: Re: Maxima & Minima
  • Next by thread: Re: FromDigits[{135,21}] -> 1371 (??!!)