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 do you convert a fraction to binary?

1/10(decimal) = 0.0001100110011... (binary) How do I do that? Am I supposed to convert to binary and then divide? Could someone show …

binary
Why do we use Base64?

Wikipedia says Base64 encoding schemes are commonly used when there is a need to encode binary data that needs be …

algorithm character-encoding binary ascii base64
Advantage of 2's complement over 1's complement?

What is the advantage of 2's complement over 1's complement in negative number representation in binary number system? How does …

binary negative-number
Bitwise operator for simply flipping all bits in an integer?

I have to flip all bits in a binary representation of an integer. Given: 10101 The output should be 01010 What is …

java binary bit-manipulation bit bitwise-operators
Why prefer two's complement over sign-and-magnitude for signed numbers?

I'm just curious if there's a reason why in order to represent -1 in binary, two's complement is used: flipping …

binary math twos-complement negative-number internal-representation
How to compile a linux shell script to be a standalone executable *binary* (i.e. not just e.g. chmod 755)?

I'm looking for a free open source tool-set that will compile various "classic" scripting languages, e.g. Korn Shell, ksh, …

scripting binary compilation executable obfuscation
Fast way of counting non-zero bits in positive integer

I need a fast way to count the number of bits in an integer in python. My current solution is …

python binary counting
Convert from BitArray to Byte

I have a BitArray with the length of 8, and I need a function to convert it to a byte. How …

c# .net binary bitarray base-class-library
How do I convert from a decimal number to IEEE 754 single-precision floating-point format?

How would I go about manually changing a decimal (base 10) number into IEEE 754 single-precision floating-point format? I understand that there …

binary floating-point ieee-754
Converting a byte to a binary string in c#

In c# I am converting a byte to binary, the actual answer is 00111111 but the result being given is 111111. Now …

c# string binary byte