{{QBDLDATE:05-20-2022}} {{QBDLTIME:23:24:48}} The '''&B''' prefix denotes that an integer value is expressed in a binary base 2 format using '''QB64''' only. {{PageSyntax}} :::: a& = '''&B1110110000111111''' * The base 2 numbering system uses binary digit values of 1 or 0, or bits on or bits off in computer register switches or memory. * Leading zero values '''can''' be omitted as they add nothing to the byte return value. * Eight binary digits would represent a one byte value ranging from 0 to 255. Four digit values("nibbles") range from 0 to 15. * Decimal values returned can be any '''signed''' [[INTEGER]], [[LONG]] integer, or [[_INTEGER64]] value so use those type of variables when converting directly as shown in the Syntax. The program [[ERROR Codes|"overflow"]] error limits are listed as: ** [[INTEGER]]: 16 binary digits or a decimal value range from -32,768 to 32,767 ** [[LONG]]: 32 binary digits or a decimal value range from -2,147,483,648 to 2,147,483,647 ** [[_INTEGER64]]: 64 binary digits or decimal values from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807. * [[LONG]] values can be returned by appending the & or ~%([[_UNSIGNED]] [[INTEGER]]) symbols after the binary number. * [[VAL]] can be used to convert "&B" prefixed string values to decimal.