What are the commonly used base systems?
1. Binary
Binary is a number system widely used in computing technology. Two numbers can represent all numbers. Binary data uses two digits: 0 and 1. to represent the number. Its base is 2, the carry rule is "every two is forwarded to one", and the borrowing rule is "borrow one to be equal to two", which was discovered by Leibniz, the German master of mathematical philosophy in the 18th century.
The current computer system basically uses a binary system, and data is mainly stored in the computer in the form of two's complement code. The binary system in the computer is a very tiny switch, with "on" representing 1 and "off" representing 0.
2. The ternary system
The ternary system is a carry system with 3 as the base. The ternary system has three digits: 0, 1, and 2. Every three is entered into one. In the early days of computer development, a biased ternary system (symmetrical ternary system) was used, with three digits -1
3. Quaternary system
Quaternary system is a carry system with 4 as the base, using the four numbers 0, 1, 2 and 3 to represent any real number. Quaternary shares many properties with all fixed-base counting systems, such as the ability to represent any real number in a standard form and the ability to represent both rational and irrational numbers.
4. Octal
Octal, abbreviated OCT or O, a counting method based on 8 as the base, using 0, 1, 2, 3, 4, 5, 6, 7 Numbers enter 1 every eight. Some programming languages often start with the number 0 to indicate that the number is octal. Octal numbers and binary numbers can correspond bit by bit (one octal number corresponds to three binary digits), so they are often used in computer languages.
The above is the detailed content of What are the commonly used base systems?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

Atom editor mac version download
The most popular open source editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Zend Studio 13.0.1
Powerful PHP integrated development environment

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software