Binary to Decimal Conversion

Bob Sneidar bobsneidar at
Sat Jan 3 01:55:49 CET 2015

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

More information about the use-livecode mailing list