Re: how do i make a function to convert base 2 representation to base-10?
- To: mathgroup at smc.vnet.net
- Subject: [mg30826] Re: how do i make a function to convert base 2 representation to base-10?
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Thu, 20 Sep 2001 03:51:18 -0400 (EDT)
- Organization: Universitaet Leipzig
- References: <9nh2a1$iu$1@smc.vnet.net> <9o990m$cs4$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
"FromDigits[list] constructs an integer from the list of its decimal
digits. \
FromDigits[list, b] takes the digits to be given in base b."
But you should have some training before a binary 101 is 5 and not
9 !
Regards
Jens
Au Han Bin wrote:
>
> hello, I am a mathematica newbie. i'd like some advice on creating a
> function that converts base-2 to base 10
> eg. {1,0,1} -> 9
> thanks, regards, josh