Binary to Decimal Conversion

Mike Bonner bonnmike at gmail.com
Fri Jan 2 20:35:09 EST 2015


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 <bonnmike at gmail.com> 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 <bobsneidar at iotecdigital.com>
> 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
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>



More information about the Use-livecode mailing list