# Conversion between Number Systems in Membrane Computing
###### Abstract
In order to solve the problem of binary writing length, octal and hexadecimal systems have also been introduced in computers. (2) The rule of binary calculation is simple. Addition is the most basic operation, and multiplication is the continuous addition operation. It is easy to realize subtraction and division based on addition and multiplication by the complement code. (3) Binary operations are easier to implement than logical operations. The binary '0' and '1' exactly correspond to the logical quantities \"true\" and \"false\". (4) The conversion of binary to other decimal systems is easy to implement both in theory and in practice. From KB-level files to GB-level video software to massive data files, all are stored in binary form on a computer or server. Among them, the conversion between the number systems plays an important role in computers. There are two main reasons: (1) Easier human-computer interaction. The binary used in computers is a 2-based system; however, humans usually use a decimal system. Therefore, performing the base conversion on a computer can help us convert between different bases and represent, process, and transmit numbers. (2) This paper provides an idea for a multidecimal conversion. Decimal is the familiar system; however, it is less clear what number system was used in the P system implemented in later biological computers. The basis of numerical computation is the representation of values in the computing system, that is, the numerical system. The efficiency of different numerical systems in different computing systems will also vary. For example, the use of binary form in electronic computers can make good use of the performance of electronic presence and computing devices. Quadrature is more appropriate for DNA computing. Spiking neural P systems usually use binary, and cell-like P systems use decimals more. According to the references we have looked at so far, there has been no systematic study of P systems for binary conversion. To further prove the convenience of numerical calculation in membrane computing systems, this paper systematically studies the cell-like conversion P system. This paper mainly discusses the implementation of decimal-to-binary and m-to-decimal conversions. The main contributions of this paper are:  
1. In this paper, we design a cell-like P system with different base conversions. They include conversions between binary and decimal and conversions between decimal and the base m.
2. The feasibility and validity of the P system for conversion between multiple decimal systems are verified by the simulation software UPSimulator [18]. The remainder of this paper is structured as follows: Section 2 will introduce the research background of this paper, including an introduction to the P system, the definition of the P system, and the general method of conversion. Section 3 introduces the P system for conversion between decimal and binary, the rules of evolution, and the implementation of specific examples. The fourth section generalizes further based on the third section and introduces the P system, the evolution rules, and the realization of concrete examples. Section 5 introduces the implementation of the binary conversion, using the UPSimulator simulation software for the example implementation, and gives a brief introduction to its workflow. Section 6 is a summary of the work in this paper.