MathGroup Archive 2001

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

Search the Archive

Re: how do i make a function to convert base 2 representation to base-10?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg30857] Re: [mg30813] how do i make a function to convert base 2 representation to base-10?
  • From: BobHanlon at aol.com
  • Date: Thu, 20 Sep 2001 03:52:08 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

In a message dated 2001/9/19 12:39:21 AM, auhb3 at cz3.nus.edu.sg writes:

>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
>

The function already exists

FromDigits[{1,0,0,1}, 2]

9


Bob Hanlon
Chantilly, VA  USA


  • Prev by Date: how to write a mathematica program
  • Next by Date: Exporting To Adobe Illustrator
  • Previous by thread: how do i make a function to convert base 2 representation to base-10?
  • Next by thread: RE: how do i make a function to convert base 2 representation to base-10?