Vyxapedia

Element - B - Binary To Decimal

Characters: B


Description

Convert a binary string or list to base 10


Overloads

  • any - int(a,2) (convert from base 2 to base 10)

Examples

  • ⟨1|0|1⟩ B = 5
  • ⟨1|1|1⟩ B = 7
  • ⟨-1|0|-1|0⟩ B = -10
  • ⟨-1|0|1|0⟩ B = -6
  • `1011` B = 11
  • `-1011` B = -11