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 (??!!)
- Follow-Ups:
- Re: FromDigits[{135,21}] -> 1371 (??!!)
- From: DrBob <drbob@bigfoot.com>
- Re: FromDigits[{135,21}] -> 1371 (??!!)