Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
For questions about method for storing and manipulating numbers on computer systems, such as floating point or binary representations.
0
votes
How does a computer compute negative(-) and positive(+) Infinity?
It just checks if the denominator is zero and, if so, does whatever it needs to do, such as returning a value representing infinity, an error, or whatever else is required in the context.
2
votes
Why do we need to convert binary numbers into hexadecimal, octal and decimal?
You got it in one. Hex is easier for humans to read but also trivial to convert to and from binary. The computer itself only uses binary, in the sense that every wire is either on or off. But, at the …
1
vote
Accepted
Why is a negative number a pseudo-positive number in ones' complement?
One's complement stores negative numbers as their bitwise negation.
Suppose we're working in $b$ bits. A positive integer $x$ is represented in binary by writing it as $x = \sum_{i=0}^b a_i2^i$, whe …
20
votes
Represent a real number without loss of precision
There is no way to represent all real numbers without errors if each number is to have a finite representation. There are uncountably many real numbers but only countably many finite strings of 1's an …
2
votes
Why do I not get the correct smallest possible value in 2's complement?
The smallest int should intuitively be the negative of 0111 - 1 = 0110 since we can represent one more positive than negative int.
This is incorrect. If you'd, for example, read the Wikipedia art …