RE: how do i make a function to convert base 2 representation to base-10?
- To: mathgroup at smc.vnet.net
- Subject: [mg30842] RE: [mg30813] how do i make a function to convert base 2 representation to base-10?
- From: "Barthelet, Luc" <lucb at ea.com>
- Date: Thu, 20 Sep 2001 03:51:39 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
there is already such a function. Seems like you really need it since In[1]:= FromDigits[{1,0,1},2] Out[1]= 5 cheers, Luc -----Original Message----- From: Au Han Bin [mailto:auhb3 at cz3.nus.edu.sg] To: mathgroup at smc.vnet.net Subject: [mg30842] [mg30813] how do i make a function to convert base 2 representation to base-10? 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