Questions tagged [number-systems]

Representations of numeric values in decimal, binary, octal, hexadecimal, and other bases; one's-complement and two's-complement signed numbers; scientific notation; floating-point numbers in digital computers; history of number systems; nonstandard number systems; algorithms for arithmetic within specific number systems or for conversions between number systems.

Number systems provide systematic ways to write numeric values such as the (base-ten) numbers $289$ or $2.125$. Some questions with this tag involve algorithms for converting base-ten numbers to or from another number system; conversions between other number systems; algorithms to perform arithmetic (addition, subtraction, multiplication, etc.) within a specific number system without converting the operands to base ten; symbols for writing numbers in systems other than base ten; ancient number systems (such as Roman numerals) and the historical development of number systems; and specialized or unusual number systems.

A base-$b$ number system represents an integer as a sequence of digits, each of which is an integer such that $0 \leq d < b$. Ordinary decimal numbers are written in base ten; other well-known bases include binary (base $2$), octal (base $8$), and hexadecimal (base sixteen). Optionally, the base or radix, $b$, may be appended as a subscript. The value of such a numeric representation is

$${\left(d_m d_{m-1} \cdots d_2 d_1 d_0\right)}_b = d_m b^m + d_{m-1} b^{m-1} + \cdots + d_2 b^2 + d_1 b^1 + d_0 b^0.$$

For example, $21_{16} = 33_{10} = 41_8 = 100001_2$, representing the same value as hexadecimal, decimal, octal, and binary numbers, respectively. The factors $b^0$, $b^1$, $b^2$, and so forth are the place values of the digits. A base-$b$ number with a fractional part is written by appending a decimal point and digits with place values $b^{-1}$, $b^{-2}$, $b^{-3}$, and so forth; for example, $$101.011_2 = 1\cdot2^2 + 0\cdot2^1 + 1\cdot2^0 + 0\cdot2^{-1} + 1\cdot2^{-2} + 1\cdot2^{-3} = 4 + 1 + \frac14 + \frac18 = 5.375_{10}.$$

In a mixed-radix number system, such as the factorial number system, the ratio between the places value of two digits depends on their distances from the decimal point. A number system can have a negative radix, for example the negabinary number system, which has the radix $-2$.

Digital computing has raised interest in various other number systems. In an $n$-digit $b$'s-complement base-$b$ representation, the integer $-x$ is represented by $b^n - x$, whereas in a $(b-1)$'s complement representation, $-x$ is represented by $(b^n - 1) - x$. Computers often use two's-complement (or sometimes one's-complement) binary numbers.

Very large or small numbers can be written in scientific notation, for example $1.234 \times 10^9$. Floating-point numbers in digital computers, typically using the IEEE 754 standard, serve a similar purpose.

More esoteric number systems of interest in computer science include:

  • Balanced base-$b$ number systems, which use both positive and negative digit values. The balanced ternary (base $3$) system with digit values $\{-1,0,1\}$ is an example of this kind of number system.
  • Redundant base-$b$ systems, which allow more than $n$ values of each digit. There may be many ways to represent a given number in such a number system.
  • Residue number systems, in which each digit position is assigned a fixed modulus and the digit in that position is the remainder when the number's value is divided by that modulus.

Other possible numbering systems include the Fibonacci base system and systems using a non-integer radix such as the $\phi$ number system.

949 questions
0
votes
1 answer

converting fraction into binary by division

So i have a question regarding converting from farctions into binary decimals. if i have $\frac{3}{17},\frac{2}{9},\frac{1}{7}$ How can i convert those fraction into binary decimals using divison. I mean this way: $3:17=$ here i would get an…
0
votes
2 answers

What is $346_7 + 165_7 $when expressed in base-$7$?

Hi I used a converter to do this question - and answered the second option. But still unsure, if I made it right.
0
votes
1 answer

Vocabulary: numeral system where "||" represents "2"

A useful system in some contexts where are you counting things is writing 1 as | 2 as || 3 as ||| . . . 11 as |||| |||| | Example of usefulness is keeping track of the number of cars that pass over a bridge. What is the system called?
snoram
  • 614
0
votes
1 answer

What is the standard : long or short scales

I know about long and short scales of numbering systems, but I want to know, what is the standard naming of large numbers?!! is that back on the long scale or the short scale?!! so if someone in the world say 1 billion, so I've to take it as 10^9 or…
0
votes
2 answers

What makes it clear that 1 precedes 2?

In the construction of natural number system, I'm not sure how the ordering of elements of N is defined. It seems that almost every approach to that is quite abstract without mentioning an actual number except 1. Then, how do you determine whether 2…
0
votes
1 answer

At what base is square root of 120 natural number

I got this problem i need to solve: At what base b, where b>2 , (120)b equals x2, where x is in decimal number system? I need to find all bases b, and i need to see the process of finding answer, so i can do it myself.
0
votes
1 answer

Question on Converting between Base Number Systems

Question on Converting Between Base Numbers The people of Jupiter use Base 13. Therefore, their numerals are 0,1,2,3,4,5,6,7,8,9,A,B,C. The people on Saturn use Base 7. Therefore, their numerals are 0,1,2,3,4,5,6. A person on Jupiter has A906BC…
0
votes
1 answer

Equations with different numerical systems

Before all, good morning; I have just seen an exercise of number systems and equations... I hope you could help me with this: An equation is given: $$6x^2+60x+150=0.$$ The exercise says that this equation has two real solutions: $$x_1=5, …
Junjiro
  • 187
0
votes
1 answer

Can't find the radix to solve this equation

I am trying to solve the equation $$ 3894937908247641871050398074967894254 = 764008325721660_x$$ Here is my attempt $$ 7x^{14} + 6x^{13} + 4x^{12} + 0x^{11} + 0x^{10} + 8x^9 + 3x^8 + 2x^7 + 5x^6 + 7x^5 + 2x^4 + 1x^3 + 6x^2 + 6x + 0 -…
0
votes
1 answer

Single precision numbers and double precision numbers

I just came across this in my work and find it rather baffling: The format and arithmetic of floating point numbers is described by several standards. For instance, IEEE 754 is a widely used standard for the case b=2. It considers, amongst other…
0
votes
1 answer

Exponent e of 5 bits alias 16

I was reading my notes and came across the following The sign of the exponent e usually is not encoded by a complement, but the so-called bias N (also referred to as excess-N). This means that e = N stands for 0, all values e > N for…
0
votes
1 answer

Converting decimal number to a hexadecimal number

I'm trying to represent the number 12.25 in various bases. So without normalizing: For Binary: 12 - > 1100 0.25 - > .01 (1 * (1/2)^2) so 12.25 = 1100.01 For Hex : 12 - > C 0.25 - > .4 (4 * (1/16)^1) so 12.25 = C.4 and…
-1
votes
3 answers

Converting Base 16 digits to base 2 and 10 - Analysis Question

With base $16$, the digits are denoted as $0, 1,\ldots, 9, A,\ldots, F$. Let $n = AB3$. Rewrite $n$ with bases $10$, $2$. I have no clue what this question means and how I should attempt to do this.
-1
votes
1 answer

How to convert a number from base 4 to base 16?

Let us take the number $32$ in base $4$ for our example. In hexadecimal it is $E$, but according to my way it ends up being $32$, which is incorrect. I take the numbers in pairs of $2$, because $4^2=16$, however this doesn't seem to work the same…
-1
votes
2 answers

How would you write a number in base 100?

When 30(10) = 1E(16) and 100(10) = 1a(64), what is the result of 199(10) = x(100)?
a51
  • 7
1 2 3
15
16