01 / Example
Example
11111111255Text & code / MULTIVERTO
Read a base-two whole number as an exact decimal integer.
Apply each text tool to the previous result. Text workflows ↗
Only the recipe name and tool order are saved in this browser. Your input and results are never saved.
01 / Example
1111111125502 / Guide
Read a base-two whole number as an exact decimal integer. Use this direction to understand the numerical value of a binary string from a specification, flag field or programming exercise. Only zeroes and ones are digits; an optional 0b prefix marks the base. The converter accepts an optional leading minus sign but does not infer whether a fixed-width field was intended as signed.
Each binary digit contributes its bit value multiplied by a power of two. In 11111111, the set positions have weights 128, 64, 32, 16, 8, 4, 2 and 1. Adding them gives 255. A leading zero would not change that value, but it might matter to the size of a field in a protocol; this numeric converter intentionally ignores such width. If the bit groups represent UTF-8 bytes of text, use the separate binary-to-text tool instead.
Read a binary input from the right: positions contribute one, two, four, eight and so on when they contain a 1. The bit string is read as a mathematical integer; a protocol may assign a different signed meaning to the same fixed-width pattern. These converters work with whole integers and retain arbitrary precision through BigInt, so a long value does not silently lose low bits as an ordinary floating-point number might. A leading minus sign represents a negative mathematical integer. It is not a fixed-width two’s-complement byte pattern: the bit string for minus one depends on whether a machine uses eight, sixteen, thirty-two or another number of bits. Add a width and encoding rule separately if a protocol requires one. Do not confuse the binary value of an integer with UTF-8 binary bytes of the characters used to spell it.
Thus 10000000 contributes 128 and the remaining zero bits contribute nothing. A 0b prefix identifies the notation but adds no value; leading zeroes likewise leave the integer unchanged. If a protocol defines an eight-bit signed byte, the same pattern might be interpreted differently under two’s complement, but this page treats it as an unsigned magnitude unless you enter a mathematical minus sign. For a bit mask, keep the original pattern beside the decimal answer so individual flags remain visible.
For a concrete check, the example input 11111111 produces 255. Trace set bits back to their place values and add them to confirm the decimal result. Keep the original bit sequence when examining flags, since a decimal total hides which positions are active. An optional prefix or extra leading zeroes do not change the value, but a missing bit can. Consult the field specification before interpreting the highest bit as a sign.
Explore guides