IntegerDigits[n] gives a list of the decimal digits in the integer n. IntegerDigits[n, b] gives a list of the base b digits in the integer n. IntegerDigits[n, b, len] pads ...
Converting between numbers and lists or strings of digits. Here is the list of base 16 digits for an integer. This gives a list of digits, together with the number of digits ...
Some integer functions. The remainder on dividing 17 by 3. The integer part of 17/3.
ByteOrdering is an option for BinaryRead, BinaryWrite, and related functions that specifies what ordering of bytes should be assumed for your computer system.
FromDigits[list] constructs an integer from the list of its decimal digits. FromDigits[list, b] takes the digits to be given in base b. FromDigits["string"] constructs an ...
BitGet
(Built-in Mathematica Symbol) BitGet[n, k] gets the bit corresponding to the coefficient of 2^k in the integer n.
BitSet
(Built-in Mathematica Symbol) BitSet[n, k] sets to 1 the bit corresponding to the coefficient of 2^k in the integer n.
All expressions in Mathematica are ultimately built from a small number of distinct types of atomic elements.
BitLength[n] gives the number of binary bits necessary to represent the integer n.
Mathematica can represent bit vectors of arbitrary length as integers, and uses highly optimized algorithms—including several original to Wolfram Research—to perform bitwise ...