Skip to main content

Questions tagged [number-formats]

For questions about method for storing and manipulating numbers on computer systems, such as floating point or binary representations.

0 votes
1 answer
53 views

We say that a computer calculates in binary via logic gates. A human in everyday calculates in base-10 numeral system. A number can be represented in 7 lines that form an "8" as calculators ...
mltm's user avatar
  • 103
0 votes
1 answer
161 views

Perhaps the answer is simple, but I am looking for ideas. I need to generate a set of a minimum of 100-200 real numbers, all having an accurate computer representation (according to the IEEE 754 ...
Leszek's user avatar
  • 1
1 vote
1 answer
76 views

This question is inspired by Equation 2.8 in Bryant & O'Hallaron's Computer Systems which says: $B2U_w (\vec{x})$ (binary-to-unsigned) and $B2T_w (\vec{x})$ (binary-to-two's complement) can be ...
shea's user avatar
  • 117
2 votes
1 answer
528 views

In Large Language Models, using 1-bit binary weights (BitNet: Scaling 1-bit Transformers for Large Language Models - Wang et al, 2023) instead of 32-bit floating point weights has numerous advantages. ...
ahron's user avatar
  • 123
1 vote
2 answers
699 views

We have two integers, $n$ and $d$. They are coprime (the only positive integer that is a divisor of both of them is $1$). They may be implemented as something that fits in a machine register, or they ...
user2373145's user avatar
1 vote
2 answers
313 views

I'm reading a book which says that to transform a number from decimal representation to binary representation you have to follow these steps: Take the integer part (the one before the point) of the ...
ela's user avatar
  • 315
1 vote
2 answers
220 views

Where are these number patterns, Octal and Hex, being used? I read this but I want to know where they are used in programming.
lunix's user avatar
  • 111
1 vote
1 answer
252 views

I was reading that a quantity $x$ is $0$ upt to numerical precision. What does this statement formally mean -- especially in the context of numerical methods or real computers. I looked up in google ...
Charlie Parker's user avatar
0 votes
1 answer
127 views

I'm trying to convert 3.2 into IEEE 754 format. We find that $(3)_2=11$ and we also find that $0.2*2=0.4 -0$ $0.4*2=0.8 -0$ $0.8*2=1.6 -1$ $0.6*2=1.2 -1$ and this cycle repeats so $.2=00110011...$ ...
Iwan5050's user avatar
  • 135
4 votes
0 answers
198 views

Due to finite precision of number representations, we face situations like: In: 0.1+0.1+0.1==0.3 Out: False (on my ...
Matthieu Latapy's user avatar
1 vote
1 answer
457 views

Theorem: Prove every number in double precision 32-bit floating-point format can be represented in double precision 64-bit floating point-format. 64-bit format: Attempt: Let $ b = b_0 ,...,b_{31} $ ...
flamel12's user avatar
  • 243
1 vote
1 answer
80 views

I was recently learning about Binary Search Trees(BSTs) and thought it could be made even more efficient by making some changes. As binary search trees have numbers greater than the root node on the ...
Yuv's user avatar
  • 139
1 vote
3 answers
6k views

So I understand the logic behind converting positive decimal numbers to IEEE 32 bit floating numbers but I'm not completely sure behind the negative one's. If for example we have a decimal number say -...
idkrlly's user avatar
  • 13
6 votes
3 answers
5k views

I'm pretty confused so I hope I don't mix up the different terms here. The two's complement representation of decimal 0 is simply ...
sprajagopal's user avatar
1 vote
1 answer
3k views

What is 4365 − 3412 when these values represent signed 12-bit octal numbers stored in sign-magnitude format? The result should be written in octal. Show your work. Octal to binary: 4365: 100 011 110 ...
Haslo Vardos's user avatar

15 30 50 per page
1
2 3 4 5
7