convnum
    Preparing search index...

    Function fromBin

    • Converts a binary string to a decimal number

      Parameters

      • binary: string

        The binary string to convert (with or without 0b prefix)

      Returns number

      The decimal representation as a number

      Error if input is not a valid binary string