If you want to do it manually, then yeah, thats the way. (positional notation) If converting a binary number with a partial value, you have to work with 1/2 positions too.
Theres also the doubling method (which I just came across). http://www.wikihow.com/Convert-from-Binary-to-Decimal Both methods listed on that site. On Fri, Jan 2, 2015 at 6:23 PM, Mike Bonner <[email protected]> wrote: > I assume you're wanting to do it by hand rather than using the baseconvert > function? > > baseconvert(00101001,2,10).. > > On Fri, Jan 2, 2015 at 5:55 PM, Bob Sneidar <[email protected]> > wrote: > >> Hi all. >> >> I thought for sure there was some formula one liner to convert a binary >> value to a decimal, but poking around on the internet, all I can find is an >> iteration method which adds the base power of each bit. Fir example, (1 * >> 2^0) + (1 * 2^1) = 3. Is this the only way or is there an actual >> mathematical formula I can use to convert a binary number into another base? >> >> Bob S >> >> >> >> _______________________________________________ >> use-livecode mailing list >> [email protected] >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
