Top "Binary" questions

Binary, the base-2 numeral system, represents numbers using two symbols: 0 and 1. For compiled computer programs, use the "executable" tag instead.

How is overflow detected in two's complement?

I see that when I subtract positive and negative number using two's complement I get overflows. For example, if I …

binary bit-manipulation twos-complement
Converting from an integer to its binary representation

Has anyone got an idea if there is any inbuilt functionality in Go for converting from any one of the …

binary go numeric
Convert integer from (pure) binary to BCD

I'm to stupid right now to solve this problem... I get a BCD number (every digit is an own 4Bit …

c binary bcd
script/tool to convert file to C/C++ source code array

I need a script/tool which reads a binary file and outputs a C/C++ source code array (which represents …

c binary
How to explicity tell SVN to treat a file as text, not binary

I have a number of files that I checked into SVN without having set up their Mime types correctly. SVN …

svn file text encoding binary
Varbinary vs Blob in MySQL

I have about 2k of raw binary data that I need to store in a table, but don't know whether …

mysql binary blob
Convert 2 bytes to a number

I have a control that has a byte array in it. Every now and then there are two bytes that …

c# binary bytearray byte twos-complement
how to xor binary with python

I'm trying to xor 2 binaries using python like this but my output is not in binary any help? a = "11011111101100110110011001011101000" b = "11001011101100111000011100001100001" …

python binary xor
Sign extension from 16 to 32 bits in C

I have to do a sign extension for a 16-bit integer and for some reason, it seems not to be …

c binary integer sign
How to print integer literals in binary or hex in haskell?

How to print integer literals in binary or hex in haskell? printBinary 5 => "0101" printHex 5 => "05" Which libraries/functions allow this? …

haskell binary io hex