Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg53725] FromDigits[{135,21}] -> 1371 (??!!)
  • From: seidovzf at yahoo.com (Zak Seidov)
  • Date: Tue, 25 Jan 2005 05:03:24 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

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 (??!!)