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.

Two's Complement Binary in Python?

Integers in Python are stored in two's complement, correct? Although: >>> x = 5 >>> bin(x) 0b101 …

python binary bit-manipulation
Floating Point Modulo Operation

I am trying to implement the range reduction operation for trigonometry. But instead I think it might be better to …

c assembly binary floating-point modulo
Adding and subtracting two's complement

Using six-bit one's and two's complement representation I am trying to solve the following problem: 12 - 7 Now, i take 12 in …

binary twos-complement
How send arraybuffer as binary via Websocket?

I am working on a project with Mozilla Europe. In this project, I use websocket by Worlize (server-side) and Mozilla (…

javascript file-upload websocket binary arraybuffer
how to do two complement multiplication and division of integers?

I have read this post on binary multiplication using two complement. but it is not very clear to me. Even …

binary division multiplication bits twos-complement
Generate all binary strings of length n with k bits set

What's the best algorithm to find all binary strings of length n that contain k bits set? For example, if …

algorithm binary permutation combinations bits
How to convert integer number into binary vector?

How to convert an integer number into binary vector using R? For example : number <- 11 [1] 1 0 1 1 what is the fastest …

r binary integer numeric binary-data
Convert 8bit binary number to BCD in VHDL

The algorithm is well known, you do 8 left shifts and check the units, tens or hundreds bits (4 each) after each …

binary vhdl bcd
How can I determine if a file is binary or text in c#?

I need to determine in 80% if a file is binary or text, is there any way to do it even …

c# text file-io binary