# File lib/libgenetics.rb, line 74
  def to_decimal
    val = 0
    bits = self.dup
    while not bits.empty?
      val = val * 2 + bits[0]
      bits = bits[1..bits.length]
    end
    val
  end