Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the floating point literal of C # syntax?

Shulou Source: shulou.com Published: 2022-06-02 08:35:56 10月04日 Update

This article mainly introduces how the floating-point literals of C # grammar is, which has a certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let's take a look at it.

C # syntax floating point literals

Decimal is a form of data representation that is often used in daily life. The 5.5 and 0.6 we use every day are decimals. In programming languages, this data representation is called floating-point numbers. Floating-point numbers consist of integer parts, decimal parts, and decimal points. The integer part of a floating-point literal is written before the decimal point and the decimal part is written after the decimal point.

In addition, decimals can also be expressed by scientific counting. Scientific counting represents a number as the n-power of aq10, where the absolute value of an is greater than or equal to 1 and less than 10 is an integer. The format of the scientific counting method and its description are shown in figure 1.5.

Figure 1.5 Scientific counting

[example 1-3] 13.3433 is a typical floating-point literal. Where 13 is the integer part and 0.3433 is the decimal part. According to scientific counting, the value can be written as 13.3433.

Note: scientific counting is generally used to represent large numbers.

Thank you for reading this article carefully. I hope the article "what is the floating-point literal capacity of C# grammar" shared by the editor will be helpful to everyone? at the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Decimal floating point science part counting literal integer article grammar Category decimal point form number data datasheet large value interest typical available through Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker MariaDB OPPO Reno Linux MySQL