Current location - Trademark Inquiry Complete Network - Tian Tian Fund - What does floating mean?
What does floating mean?
Float is one of the basic data types of C language, which stands for single-precision floating-point number. C language adopts 10 radix, which is mainly composed of numbers and decimal points. For example, 1.7 and 2.8466 are all 10 cardinality, and float is the decimal point. Floating-point numbers are expressed in exponential form in machines, which are divided into four parts: number symbols, mantissa, exponential symbols and exponents.

Floating-point numbers are expressed in exponential form in machines, which are divided into four parts: number symbols, mantissa, exponential symbols and exponents. The number symbol occupies 1 binary, indicating the sign of the number. Exponential symbols occupy 1 binary, and represent the symbols of exponents. The mantissa represents the significant digits of floating-point numbers, but there is no leading zero and dot. An index represents an important number.

Matters needing attention in the use of C language

C language has no string type, and strings are stored in character arrays. Because character data is stored in the form of integer (ASCii code), it is also possible to store character data in an integer array.

In C language, strings are treated as character arrays. When character arrays are used to store string constants, a' \ 0' is automatically added as a terminator. Therefore, in the program, it is often judged whether the string ends by detecting the position of' \ 0'. When outputting a string in a character array, stop the output when encountering' \ 0'.

The above contents refer to Baidu Encyclopedia -c language.