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
2 answers

Arranging $3\sqrt{9}, 4\sqrt{20}, 6\sqrt{25}$ in ascending order

How to arrange $3\sqrt{9}, 4\sqrt{20}, 6\sqrt{25}$ in ascending order?
0
votes
1 answer

Why do we say Hexadecimal, combining Greek with Latin?

I'm not entirely sure if this is the right place to ask this question, but since there are quite a few similar, not directly math-related questions, I assume it is okay. I was just wondering why we say hexadecimal. I mean from base 1 to base 10 we…
Forivin
  • 187
0
votes
0 answers

Negative digits instead of negative sign

Instead of a negative sign, allow some digits to represent negative numbers. In base 10, define $a=-4, \; b=-3, \; c=-2, \; d=-1$: $\cdots$ -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 11 $\cdots$ $\to$ $\cdots$ d4 d5 a b c d 0 1 2 3 4 5 1a 1b 1c 1d 10…
0
votes
2 answers

Sets in Number Systems

I have questions about the number systems which confused me. As all we know we are using decimal system and also we can talk about natural numbers, integers and so on. Could we talk about natural numbers in for example in quinary system? additional…
Alper
  • 511
  • 5
  • 11
0
votes
0 answers

Solving for Unknown Radix

If I have an equation like $$((34)_r + (24)_r) * (21)_r = (1480)_r$$How would I go about solving for r? Initially I tried to use the power series expansion to get the equation $$(5r + 8)(2r + 1) = r^3 + 4r^2 + 8r$$ but my answer comes out to be a…
0
votes
0 answers

Numbering system, that consists of numbers from 1 to 9

In university I had to work on a project, that concerns number $3141592653589793$. Teacher told me, that since there are no zeros, I should work in $9$ based numbering system. But in $9$ based numbering system there is $0$. So is it possible to use…
newbie
  • 1
  • 3
0
votes
1 answer

The number of digits in the bijective base-k numeral for n is ⌈logk((n+1)(k−1))⌉(k≥2, n≥0). Why?

Brian Scott provides a proof (Brian M. Scott (https://math.stackexchange.com/users/12042/brian-m-scott), How many digits are in the bijective base-k numeral for n?, URL (version: 2013-12-16): https://math.stackexchange.com/q/608884) I understand…
0
votes
1 answer

What subset of rationals can be represented in a base?

Given a basis, like 10, what numbers can be exactly represented in a number base 10, without repeating decimals (is it called n-mals for a general base $n$)? I assumed it is any number which could be written as a fraction of: $$ \frac{X}{2^p \times…
lvella
  • 715
0
votes
2 answers

Converting large numbers from one base to another

The number I am trying to convert is 212122101212, from base 3 to base 9. The way I tried doing it is converting the number to base 10 by multiplying each digit with weight of corresponding power of 3. And then convert this to base 9 by repeatedly…
Rakesh K
  • 123
0
votes
1 answer

unary numbers: base-1 numeral system

We all are used to think that the lowest base for numeral system is 10 2. But is it possible to do math in unary system? I found the funny section in MS windows registry: https://i.stack.imgur.com/QK88G.png If you want to add monospace font to…
0
votes
3 answers

About numeral systems

I have a question about conversion in number systems . For converting binary to decimal ,why do we need to multiply each of the coefficients by powers of 2 ? And while converting decimal (such as100.12 ) back to binary ,why do we need to multiply…
Shunya
  • 3
0
votes
1 answer

Converting Roman Numbers to Decimal (Not Duplicate)

I request you to please read this before marking as Duplicate. I have referred to below: Roman to decimal conversion Roman numbers conversion to decimal number Online conversion from Roman After understanding, I have designed following algorithm…
SimpleGuy
  • 101
0
votes
5 answers

Decimal Place and crossing the boder

I always was a little confused by this notion but never thought to investigate it. In school and as I grew older people in this world (mathematics) would just say " that's the way it is " as in other subjects i would try to understand and accepted…
Max R.
  • 3
0
votes
1 answer

Numbers that have constant digits value independent of base

I was wondering why for example $\dfrac{1111_b \cdot 111_b}{11_b \cdot 1_b} = 11211_b$. Is there a good explanation for this and is there a name for products like this which have constant digits value independent of base? It also seems to hold with…
Puzzled417
  • 6,956
0
votes
1 answer

How to calculate after decimal point of 99.21(Base 10) to (Base 8)?

As I know by 0.21 x8 and -4 for the answer to convert to base 8. However, I could not calculate and keep on expanding the value to millions.